__construct() public method

Constructor.
public __construct ( Symfony\Component\Config\FileLocatorInterface $locator, Symfony\Component\Templating\TemplateNameParserInterface $parser, string | null $rootPath = null )
$locator Symfony\Component\Config\FileLocatorInterface A FileLocatorInterface instance
$parser Symfony\Component\Templating\TemplateNameParserInterface A TemplateNameParserInterface instance
$rootPath string | null The root path common to all relative paths (null for getcwd())
コード例 #1
0
ファイル: ThemeLoader.php プロジェクト: andythorne/sandbox
 /**
  * @param ThemeManager                $themeManager
  * @param FileLocatorInterface        $locator
  * @param TemplateNameParserInterface $parser
  */
 function __construct(ThemeManager $themeManager, FileLocatorInterface $locator, TemplateNameParserInterface $parser)
 {
     $this->themeManager = $themeManager;
     parent::__construct($locator, $parser);
 }
コード例 #2
0
 public function __construct($defaultLoadBundle, FileLocatorInterface $locator, TemplateNameParserInterface $parser)
 {
     $this->defaultLoadBundle = $defaultLoadBundle;
     parent::__construct($locator, $parser);
 }
コード例 #3
0
ファイル: Loader.php プロジェクト: rodmen/BannerBundle
 public function __construct(KernelInterface $kernel, FileLocatorInterface $locator, TemplateNameParserInterface $parser)
 {
     $this->kernel = $kernel;
     $this->cache = [];
     parent::__construct($locator, $parser);
 }