lib/private/Template/CSSResourceLocator.php
/**
	 * cache and append the scss $file if exist at $root
	 *
	 * @param string $root path to check
	 * @param string $file the filename
	 * @return bool True if the resource was found and cached, false otherwise
	 */
cache and append the scss $file if exist at $root
@param string $root path to check
@param string $file the filename
@return bool True if the resource was found and cached, false otherwise
cache and append the scss $file if exist at $root @param string $root path to check @param string $file the filename @return bool True if the resource was found and cached false otherwise
protected function cacheAndAppendScssIfExist($root, $file, $app = 'core') {
		if (is_file($root.'/'.$file)) {
			if($this->scssCacher !== null) {
				if($this->scssCacher->process($root, $file, $app)) {
					$this->append($root, $this->scssCacher->getCachedSCSS($app, $file), false, true, true);
					return true;
				} else {
					$this->logger->warning('Failed to compile and/or save '.$root.'/'.$file, ['app' => 'core']);
					return false;
				}
			} else {
				$this->logger->debug('Scss is disabled for '.$root.'/'.$file.', ignoring', ['app' => 'core']);
				return true;
			}
		}
		return false;
	}
protected function cacheAndAppendScssIfExist ( $ root , $ file , $ app = 'core' ) { if ( is_file ( $ root . '/' . $ file ) ) { if ( $ this -> scssCacher !== null ) { if ( $ this -> scssCacher -> process ( $ root , $ file , $ app ) ) { $ this -> append ( $ root , $ this -> scssCacher -> getCachedSCSS ( $ app , $ file ) , false , true , true ) ; return true ; } else { $ this -> logger -> warning ( 'Failed to compile and/or save ' . $ root . '/' . $ file , [ 'app' => 'core' ] ) ; return false ; } } else { $ this -> logger -> debug ( 'Scss is disabled for ' . $ root . '/' . $ file . ', ignoring' , [ 'app' => 'core' ] ) ; return true ; } } return false ; }
cache and append the scss $file if exist at $root
 @param string $root path to check
 @param string $file the filename
 @return bool True if the resource was found and cached, false otherwise
cache and append the scss $file if exist at $root @param string $root path to check @param string $file the filename @return bool True if the resource was found and cached false otherwise