示例#1
0
 /**
  * @param Application     $application
  * @param InputInterface  $input
  * @param OutputInterface $output
  */
 public function __construct(Application $application, InputInterface $input, OutputInterface $output)
 {
     parent::__construct();
     $this->set('application', $application);
     $this->set('helper_set', $application->getHelperSet());
     $this->set('input', $input);
     $this->set('output', $output);
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $fileLocator = new FileLocator(__DIR__ . '/../../config/');
     $resolver = new LoaderResolver(array(new XmlFileLoader($this, $fileLocator), new YamlFileLoader($this, $fileLocator)));
     $loader = new DelegatingLoader($resolver);
     $loader->load('services.yml');
 }
示例#3
0
 /**
  * ServiceContainerBuilder constructor.
  * @param ApplicationPath $applicationPath
  * @param SymfonyRequest $symfonyRequest
  * @param string $applicationMode
  * @param bool $allModules
  */
 public function __construct(ApplicationPath $applicationPath, SymfonyRequest $symfonyRequest, $applicationMode, $allModules = false)
 {
     parent::__construct();
     $this->applicationPath = $applicationPath;
     $this->symfonyRequest = $symfonyRequest;
     $this->applicationMode = $applicationMode;
     $this->allModules = $allModules;
     $this->setUpContainer();
 }
示例#4
0
 public function __construct($mode = PhpcrShell::MODE_STANDALONE)
 {
     parent::__construct();
     $this->mode = $mode;
     $this->set('container', $this);
     $this->registerHelpers();
     $this->registerConfig();
     $this->registerPhpcr();
     $this->registerEvent();
     $this->registerConsole();
     $this->registerQuery();
 }
 /**
  * Constructor
  */
 public function __construct(FileLocator $importLocator)
 {
     $this->registerExtension(new ImportExtension($this));
     $this->setImportLocator($importLocator);
     parent::__construct();
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(ParameterBagInterface $parameterBag = NULL)
 {
     $this->setResourceTracking(FALSE);
     parent::__construct($parameterBag);
 }
 /**
  * Constructor.
  *
  * @param ParameterBagInterface $parameterBag A ParameterBagInterface instance
  * @param array $diDefinitions
  *
  * @api
  */
 public function __construct(ParameterBagInterface $parameterBag = null, array $diDefinitions)
 {
     $this->definitions = $diDefinitions;
     parent::__construct($parameterBag);
 }
示例#8
0
 /**
  * Construct object.
  *
  * @param array $options The default options
  */
 public function __construct($options = array())
 {
     parent::__construct(new ParameterBag($options));
 }
 public function __construct(ParameterBagInterface $parameterBag = null)
 {
     parent::__construct($parameterBag);
     $this->registerDefaultServices($this->defaultSettings);
 }
 public function __construct(ParameterBagInterface $parameterBag = NULL)
 {
     parent::__construct($parameterBag);
     $this->druponyInitialize();
 }