/**
  * Constructor.
  *
  * @param KernelInterface       $kernel       The kernel is used to parse bundle notation
  * @param ContainerInterface    $container    The container is used to load the managers lazily, thus avoiding a circular dependency
  * @param ParameterBagInterface $parameterBag The container parameter bag
  * @param string                $baseDir      The base directory for relative inputs
  * @param Boolean               $debug        The current debug mode
  */
 public function __construct(KernelInterface $kernel, ContainerInterface $container, ParameterBagInterface $parameterBag, $baseDir, $debug = false)
 {
     $this->kernel = $kernel;
     $this->container = $container;
     $this->parameterBag = $parameterBag;
     parent::__construct($baseDir, $debug);
 }
Exemplo n.º 2
0
 public function __construct(Kernel $kernel, $baseDir, $debug = false)
 {
     $this->kernel = $kernel;
     parent::__construct($baseDir, $debug);
 }
Exemplo n.º 3
0
 /**
  * Constructor
  *
  * @param \Pimple $container
  * @param string  $root
  * @param bool    $debug
  */
 public function __construct(\Pimple $container, $root, $debug = false)
 {
     parent::__construct($root, $debug);
     $this->container = $container;
 }
Exemplo n.º 4
0
 /**
  * Creates the factory.
  *
  * @param ResourceRepository $repo  The Puli resource repository.
  * @param string             $root  The root directory of file resources.
  * @param bool               $debug Whether to enable debugging.
  */
 public function __construct(ResourceRepository $repo, $root, $debug = false)
 {
     parent::__construct($root, $debug);
     $this->repo = $repo;
     $this->root = $root;
 }