コード例 #1
0
 function __construct(ContainerBuilder $container)
 {
     parent::__construct($container);
     $this->groupBag = new IndexBag();
     $this->nodesBag = new IndexBag();
     $this->linksBag = new IndexBag();
     $this->metaGroupIndex = $this->groupBag->addItem('meta');
 }
コード例 #2
0
ファイル: PhpDumper.php プロジェクト: symfony/symfony
    /**
     * {@inheritdoc}
     */
    public function __construct(ContainerBuilder $container)
    {
        if (!$container->isFrozen()) {
            @trigger_error('Dumping an uncompiled ContainerBuilder is deprecated since version 3.3 and will not be supported anymore in 4.0. Compile the container beforehand.', E_USER_DEPRECATED);
        }

        parent::__construct($container);

        $this->inlinedDefinitions = new \SplObjectStorage();
    }
コード例 #3
0
 public function __construct(ContainerBuilder $container)
 {
     parent::__construct($container);
     $this->inlinedDefinitions = new \SplObjectStorage();
 }
コード例 #4
0
ファイル: YamlDumper.php プロジェクト: TuxCoffeeCorner/tcc
 /**
  * Constructor.
  *
  * @param ContainerBuilder $container The service container to dump
  *
  * @api
  */
 public function __construct(ContainerBuilder $container)
 {
     parent::__construct($container);
     $this->dumper = new YmlDumper();
 }