本文整理汇总了PHP中Assetic\Factory\AssetFactory::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AssetFactory::__construct方法的具体用法?PHP AssetFactory::__construct怎么用?PHP AssetFactory::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assetic\Factory\AssetFactory
的用法示例。
在下文中一共展示了AssetFactory::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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);
}
示例2: __construct
public function __construct(Kernel $kernel, $baseDir, $debug = false)
{
$this->kernel = $kernel;
parent::__construct($baseDir, $debug);
}
示例3: __construct
/**
* 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;
}
示例4: __construct
/**
* 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;
}