示例#1
0
  /**
   * Constructor.
   *
   * @param Loader $loader A Loader instance
   * @param string $dir    The directory where to store the cache files
   */
  public function __construct(Loader $loader, $dir)
  {
    $this->loader = $loader;
    $this->dir = $dir;

    parent::__construct();
  }
示例#2
0
 /**
  * Constructor.
  *
  * @param array $templatePathPatterns An array of path patterns to look for templates
  */
 public function __construct($templatePathPatterns)
 {
     if (!is_array($templatePathPatterns)) {
         $templatePathPatterns = array($templatePathPatterns);
     }
     $this->templatePathPatterns = $templatePathPatterns;
     parent::__construct();
 }
示例#3
0
 /**
  * Constructor.
  *
  * @param Loader[] $loaders An array of loader instances
  */
 public function __construct(array $loaders = array())
 {
     $this->loaders = array();
     foreach ($loaders as $loader) {
         $this->addLoader($loader);
     }
     parent::__construct();
 }