AssetManager\Resolver\CollectionResolver::__construct PHP Method

__construct() public method

Instantiate and optionally populate collections.
public __construct ( array | Traversabl\Traversable $collections = [] )
$collections array | Traversabl\Traversable
    public function __construct($collections = array())
    {
        $this->setCollections($collections);
    }

Usage Example

コード例 #1
0
 /**
  * Constructor
  *
  * Instantiate, set the assets paths, templates paths and the current template
  * @param array $assetsPaths
  * @param array $templatesPathStack
  */
 public function __construct(array $assetsPaths, array $templatesPathStack)
 {
     parent::__construct();
     $this->setAssetsPaths($assetsPaths);
     $this->setTemplatesPathStack($templatesPathStack);
 }