Inheritance: implements Neomerx\JsonApi\Contracts\Schema\ContainerInterface, implements Psr\Log\LoggerAwareInterface, use trait Psr\Log\LoggerAwareTrait
 /**
  * @param SchemaFactoryInterface $factory
  * @param array                  $schemas
  * @param ModelSchemesInterface  $modelSchemes
  */
 public function __construct(SchemaFactoryInterface $factory, array $schemas, ModelSchemesInterface $modelSchemes)
 {
     parent::__construct($factory, $schemas);
     $this->modelSchemes = $modelSchemes;
 }
Beispiel #2
0
 /**
  * @inheritdoc
  */
 public function createContainer(array $providers = [])
 {
     $container = new Container($this, $providers);
     $container->setLogger($this->logger);
     return $container;
 }
Beispiel #3
0
 /**
  * @inheritdoc
  */
 public function getSchema($resource)
 {
     return parent::getSchema($resource)->setResource($resource);
 }