コード例 #1
0
 protected function getAssetic_Filter_YuiJsService()
 {
     $this->services['assetic.filter.yui_js'] = $instance = new \Assetic\Filter\Yui\JsCompressorFilter($this->targetDirs[2] . '/Resources/java/yuicompressor-2.4.7.jar', 'C:\\Program Files (x86)\\Java\\jre1.8.0_65\\bin\\java.exe');
     $instance->setCharset('UTF-8');
     $instance->setTimeout(NULL);
     $instance->setStackSize(NULL);
     $instance->setNomunge(NULL);
     $instance->setPreserveSemi(NULL);
     $instance->setDisableOptimizations(NULL);
     $instance->setLineBreak(NULL);
     return $instance;
 }
コード例 #2
0
 protected function getAssetic_Filter_YuiJsService()
 {
     $this->services['assetic.filter.yui_js'] = $instance = new \Assetic\Filter\Yui\JsCompressorFilter($this->targetDirs[2] . '/Resources/java/yuicompressor-2.4.7.jar', '/usr/bin/java');
     $instance->setCharset('UTF-8');
     $instance->setTimeout(NULL);
     $instance->setStackSize(NULL);
     $instance->setNomunge(NULL);
     $instance->setPreserveSemi(NULL);
     $instance->setDisableOptimizations(NULL);
     return $instance;
 }
コード例 #3
0
 /**
  * Gets the 'assetic.filter.yui_js' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Assetic\Filter\Yui\JsCompressorFilter A Assetic\Filter\Yui\JsCompressorFilter instance.
  */
 protected function getAssetic_Filter_YuiJsService()
 {
     $this->services['assetic.filter.yui_js'] = $instance = new \Assetic\Filter\Yui\JsCompressorFilter($this->targetDirs[2] . '/../bin/yuicompressor.jar', 'C:\\ProgramData\\Oracle\\Java\\javapath\\java.EXE');
     $instance->setCharset('UTF-8');
     $instance->setTimeout(NULL);
     $instance->setStackSize(NULL);
     $instance->setNomunge(NULL);
     $instance->setPreserveSemi(NULL);
     $instance->setDisableOptimizations(NULL);
     $instance->setLineBreak(NULL);
     return $instance;
 }
コード例 #4
0
 /**
  * Gets the 'assetic.filter.yui_js' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return Assetic\Filter\Yui\JsCompressorFilter A Assetic\Filter\Yui\JsCompressorFilter instance.
  */
 protected function getAssetic_Filter_YuiJsService()
 {
     $this->services['assetic.filter.yui_js'] = $instance = new \Assetic\Filter\Yui\JsCompressorFilter('C:/xampp/htdocs/beta-buggl/app/Resources/java/yuicompressor-2.4.7.jar', 'C:\\ProgramData\\Oracle\\Java\\javapath\\java.EXE');
     $instance->setCharset('UTF-8');
     $instance->setTimeout(NULL);
     $instance->setStackSize(NULL);
     $instance->setNomunge(NULL);
     $instance->setPreserveSemi(NULL);
     $instance->setDisableOptimizations(NULL);
     $instance->setLineBreak(NULL);
     return $instance;
 }