private function readConfig($type, FileLoader $fileLoader, $configDir) { $finder = new Finder(); $finder->name('*.' . $type)->in($configDir); $config = array(); foreach ($finder as $file) { $config[$file->getBasename('.' . $type)] = $fileLoader->load($file->getRealPath()); $this->resources[] = new FileResource($file->getRealPath()); } return $config; }
/** * Constructor. * * @param FileLocatorInterface $locator A FileLocator instance */ public function __construct(FileLocatorInterface $locator = null) { if (null === $locator) { $locator = new FileLocator(); } parent::__construct($locator); }
/** * @param FileLocatorInterface $locator * @param array $options */ public function __construct(FileLocatorInterface $locator, array $options) { parent::__construct($locator); $resolver = new OptionsResolver(); $this->setDefaultOptions($resolver); $this->options = $resolver->resolve($options); }
/** * @param AttributeRepositoryInterface $attributeRepository * @param AttributeOptionRepositoryInterface $attributeOptionRepository * @param string $attributeCode * @param FileLoader $loader * @param string $mappingFile */ public function __construct(AttributeRepositoryInterface $attributeRepository, AttributeOptionRepositoryInterface $attributeOptionRepository, $attributeCode, FileLoader $loader = null, $mappingFile = null) { $this->attributeRepository = $attributeRepository; $this->attributeOptionRepository = $attributeOptionRepository; $this->mapping = []; $this->attribute = $this->attributeRepository->findOneByIdentifier($attributeCode); if ($this->attribute) { $this->attributeOptions = $this->attribute->getOptions(); } else { $this->attributeOptions = new ArrayCollection(); } if ($mappingFile !== null && $loader !== null) { foreach ($loader->load($mappingFile) as $rawValue => $optionCode) { $this->mapTo($rawValue, $optionCode); } } }
/** * Constructor. * * @param FileLocatorInterface $locator A FileLocator instance * @param AnnotationClassLoader $loader An AnnotationClassLoader instance * * @throws \RuntimeException */ public function __construct(FileLocatorInterface $locator, AnnotationClassLoader $loader) { if (!function_exists('token_get_all')) { throw new \RuntimeException('The Tokenizer extension is required for the routing annotation loaders.'); } parent::__construct($locator); $this->loader = $loader; }
public function __construct(FileLocatorInterface $locator) { parent::__construct($locator); if (extension_loaded('yaml')) { $this->parserType = self::PARSER_EXTENSION; } else { $this->parserType = self::PARSER_SYMFONY; } }
/** * @param FileLocatorInterface $locator A FileLocator instance * * @throws \RuntimeException */ public function __construct(FileLocatorInterface $locator = null) { if (!$locator) { $locator = new FileLocator(); } $this->setCallback(function () { }); parent::__construct($locator); }
/** * Constructor. * * @param FileLocator $locator A FileLocator instance */ public function __construct(FileLocator $locator) { parent::__construct($locator); }
/** * Constructor. * * @param FileLocatorInterface $locator A FileLocatorInterface instance * @param YamlParser $yamlParser A yamlParser instance */ public function __construct(FileLocatorInterface $locator, YamlParser $yamlParser) { parent::__construct($locator); $this->yamlParser = $yamlParser; }
/** * @param FileLocatorInterface $locator * @param Parser\ParserInterface $parser * * @api */ public function __construct(FileLocatorInterface $locator, Parser\ParserInterface $parser) { parent::__construct($locator); $this->parser = $parser; }
/** * Constructs a new YAML-based configuration loader. * * @param \Symfony\Component\Config\FileLocatorInterface $locator The file locator. * @param \Symfony\Component\Yaml\Parser $yamlParser The YAML parser. * @param \Helmich\TypoScriptLint\Util\Filesystem $filesystem A filesystem interface. */ public function __construct(FileLocatorInterface $locator, YamlParser $yamlParser, Filesystem $filesystem) { parent::__construct($locator); $this->yamlParser = $yamlParser; $this->filesystem = $filesystem; }
public function __construct(ConfigBag $configBag, FileLocatorInterface $locator) { $this->configBag = $configBag; parent::__construct($locator); // TODO: Change the autogenerated stub }
/** * Constructor. * * @param Container $app A Container instance * @param FileLocatorInterface $locator A FileLocatorInterface instance */ public function __construct($config, FileLocatorInterface $locator) { $this->config = $config; $this->yamlParser = new YamlParser(); parent::__construct($locator); }
/** * @param Container $container * @param ParameterBagInterface $parameterBag * @param FileLocatorInterface $locator */ public function __construct(Container $container, ParameterBagInterface $parameterBag, FileLocatorInterface $locator) { $this->container = $container; $this->parameterBag = $parameterBag; parent::__construct($locator); }
public function __construct(FileLocatorInterface $locator, EntityManager $entityManager, StructureConfig $structureConfig) { parent::__construct($locator); $this->entityManager = $entityManager; $this->structureConfig = $structureConfig; }
public function __construct(FileLocatorInterface $locator, ResourceCollection $resources = null) { parent::__construct($locator); $this->locator = $locator; $this->resources = $resources; }
/** * @param Container $container * @param FileLocatorInterface $locator */ public function __construct(Container $container, FileLocatorInterface $locator) { $this->container = $container; parent::__construct($locator); }
/** * Constructor. * * @param ehough_iconic_ContainerBuilder $container A ContainerBuilder instance * @param \Symfony\Component\Config\FileLocatorInterface $locator A FileLocator instance */ public function __construct(\ehough_iconic_ContainerBuilder $container, \Symfony\Component\Config\FileLocatorInterface $locator) { $this->container = $container; parent::__construct($locator); }
/** * Constructor. * * @param ContainerBuilder $container A ContainerBuilder instance * @param FileLocator $locator A FileLocator instance */ public function __construct(ContainerBuilder $container, FileLocator $locator) { $this->container = $container; parent::__construct($locator); }
/** * @inheritdoc * @param Application $app */ public function __construct(FileLocatorInterface $locator, Application $app) { $this->app = $app; parent::__construct($locator); }