/** * @param ContainerInterface $container * @param RouterInterface $router * @param Reader $reader * @param DocCommentExtractor $commentExtractor * @param ControllerNameParser $controllerNameParser * @param array $handlers * @param array $annotationsProviders * @param TransformerHelper $transformerHelper * @param Normalizer $normailzer * @param ResourceCollection $resourceCollection * @param EntityManager $entityManager * @param FormRegistryInterface $registry */ public function __construct(ContainerInterface $container, RouterInterface $router, Reader $reader, DocCommentExtractor $commentExtractor, ControllerNameParser $controllerNameParser, array $handlers, array $annotationsProviders, TransformerHelper $transformerHelper, Normalizer $normailzer, ResourceCollection $resourceCollection, EntityManager $entityManager, FormRegistryInterface $registry) { $this->container = $container; $this->router = $router; $this->commentExtractor = $commentExtractor; $this->reader = $reader; $this->handlers = $handlers; $this->transformerHelper = $transformerHelper; $this->resourceCollection = $resourceCollection; $this->normailzer = $normailzer; $this->classMetadataFactory = $this->container->get('api.mapping.class_metadata_factory'); $nelmioDocStandard = $this->container->hasParameter('nelmio.extractor.standard.api.version'); if ($nelmioDocStandard) { $this->nelmioDocStandardVersion = $this->container->getParameter('nelmio.extractor.standard.api.version'); } $this->transformerHelper->setClassMetadataFactory($this->classMetadataFactory); $this->annotationsProviders = $annotationsProviders; $this->setVersionApiDoc(); if (in_array(strtolower($this->versionApi), $this->nelmioDocStandardVersion)) { $annotationsProviders = []; } parent::__construct($container, $router, $reader, $commentExtractor, $controllerNameParser, $handlers, $annotationsProviders); $this->registry = $registry; $this->controllerNameParser = $controllerNameParser; $this->entityManager = $entityManager; }
/** * @param ContainerInterface $container * @param RouterInterface $router * @param Reader $reader * @param DocCommentExtractor $commentExtractor * @param ControllerNameParser $controllerNameParser * @param array $handlers * @param array $annotationsProviders * @param string $cacheFile * @param bool|false $debug */ public function __construct(ContainerInterface $container, RouterInterface $router, Reader $reader, DocCommentExtractor $commentExtractor, ControllerNameParser $controllerNameParser, array $handlers, array $annotationsProviders, $cacheFile, $debug = false) { parent::__construct($container, $router, $reader, $commentExtractor, $controllerNameParser, $handlers, $annotationsProviders); $this->cacheFile = $cacheFile; $this->debug = $debug; }
public function __construct(ContainerInterface $container, RouterInterface $router, Reader $reader, DocCommentExtractor $commentExtractor, array $handlers, $cacheFile, $debug = false) { parent::__construct($container, $router, $reader, $commentExtractor, $handlers); $this->cacheFile = $cacheFile; $this->cache = new ConfigCache($this->cacheFile, $debug); }