PHP Class CeesVanEgmond\Minify\Minify

Show file Open project: ceesvanegmond/minify Class Usage Examples

Protected Properties

Property Type Description
$attributes array
$config array

Public Methods

Method Description
__construct ( array $config, string $environment )
__toString ( ) : string
javascript ( $file, array $attributes = [] ) : string
javascriptDir ( $dir, array $attributes = [] ) : string
onlyUrl ( ) : mixed
stylesheet ( $file, array $attributes = [] ) : string
stylesheetDir ( $dir, array $attributes = [] ) : string
withFullUrl ( ) : string

Protected Methods

Method Description
minifyForCurrentEnvironment ( ) : boolean
render ( ) : mixed

Private Methods

Method Description
assetDirHelper ( $ext, $dir ) : string
checkConfiguration ( array $config ) : array
getBaseUrl ( ) : string
process ( $file )

Method Details

__construct() public method

public __construct ( array $config, string $environment )
$config array
$environment string

__toString() public method

public __toString ( ) : string
return string

javascript() public method

public javascript ( $file, array $attributes = [] ) : string
$file
$attributes array
return string

javascriptDir() public method

public javascriptDir ( $dir, array $attributes = [] ) : string
$dir
$attributes array
return string

minifyForCurrentEnvironment() protected method

onlyUrl() public method

public onlyUrl ( ) : mixed
return mixed

render() protected method

protected render ( ) : mixed
return mixed

stylesheet() public method

public stylesheet ( $file, array $attributes = [] ) : string
$file
$attributes array
return string

stylesheetDir() public method

public stylesheetDir ( $dir, array $attributes = [] ) : string
$dir
$attributes array
return string

withFullUrl() public method

public withFullUrl ( ) : string
return string

Property Details

$attributes protected property

protected array $attributes
return array

$config protected property

protected array $config
return array