Example #1
0
 public function __construct($url, $name)
 {
     parent::__construct($url, $name);
     $this->setAttribute('type', 'text/javascript');
     // set the content, because otherwise ../> tag will destroy layout.
     $this->setContent('');
 }
Example #2
0
 public function __construct($url, $name, $media = null)
 {
     parent::__construct($url, $name);
     $this->setAttribute('type', 'text/css');
     $this->setAttribute('rel', 'stylesheet');
     // default to screen css file
     if ($media === null) {
         $media = 'screen';
     }
     $this->setAttribute('media', $media);
 }
 /**
  * @return bool
  */
 public function isDevDependency()
 {
     return $this->sourcePackage->hasDataPackageKey('require-dev', $this->destPackage->getName());
 }