/** * 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); }
public function __construct(Kernel $kernel, $baseDir, $debug = false) { $this->kernel = $kernel; parent::__construct($baseDir, $debug); }
/** * 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; }
/** * 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; }