PHP Class Minify_Controller_Base, minify
The controller class validates a request and uses it to create sources
for minification and set options like contentType. It's also responsible
for loading minifier code upon request.
Show file
Open project: mrclay/minify
Class Usage Examples
Protected Properties
Public Methods
Method |
Description |
|
__construct ( Minify_Env $env, Minify_Source_Factory $sourceFactory, Psr\Log\LoggerInterface $logger = null ) |
|
|
createConfiguration ( array $options ) : Minify_ServeConfiguration |
Create controller sources and options for Minify::serve() |
|
getEnv ( ) |
|
|
log ( string $msg ) : null |
Send message to the Minify logger |
|
Method Details
__construct()
public method
public __construct ( Minify_Env $env, Minify_Source_Factory $sourceFactory, Psr\Log\LoggerInterface $logger = null ) |
$env |
Minify_Env |
|
$sourceFactory |
Minify_Source_Factory |
|
$logger |
Psr\Log\LoggerInterface |
|
createConfiguration()
abstract public method
Create controller sources and options for Minify::serve()
abstract public createConfiguration ( array $options ) : Minify_ServeConfiguration |
$options |
array |
controller and Minify options |
return |
Minify_ServeConfiguration |
|
Send message to the Minify logger
Property Details
protected Minify_Env $env |
return |
Minify_Env |
|
$logger protected property
protected LoggerInterface,Psr\Log $logger |
return |
Psr\Log\LoggerInterface |
|
$sourceFactory protected property
protected Minify_Source_Factory $sourceFactory |
return |
Minify_Source_Factory |
|