Exemplo n.º 1
0
 private function pushResource($stackName, $resource)
 {
     BA::assertIsEnum($stackName, array('css', 'js'));
     if (!isset($this->resources[$stackName][$resource])) {
         $this->resources[$stackName][$resource] = true;
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @param string $type
  * The type of the resource stack - either `css` or `js`
  */
 public function __construct($type)
 {
     $type = strtolower($type);
     BA::assertIsEnum(strtolower($type), array('js', 'css'));
     $this->type = $type;
 }