Php library that provides implementations for triniti:news schemas.


Keywords
ncr, pbj, pbjx
License
Apache-2.0

Documentation

news-php

Build Status Code Climate Test Coverage

Php library that provides implementations for triniti:news schemas. Using this library assumes that you've already created and compiled your own pbj classes using the Pbjc and are making use of the "triniti:news:mixin:*" mixins from triniti/schemas.

Symfony Integration

Enabling these services in a Symfony app is done by importing classes and letting Symfony autoconfigure and autowire them.

config/packages/news.yml:

services:
  _defaults:
    autowire: true
    autoconfigure: true
    public: false

  Triniti\News\:
    resource: '%kernel.project_dir%/vendor/triniti/news/src/**/*'