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.
Author: Stephen Clay ([email protected])
Exibir arquivo Open project: mrclay/minify Class Usage Examples

Protected Properties

Property Type Description
$env Minify_Env
$logger Psr\Log\LoggerInterface
$sourceFactory Minify_Source_Factory

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

getEnv() public method

public getEnv ( )

log() public method

Send message to the Minify logger
Deprecation: use $this->logger
public log ( string $msg ) : null
$msg string
return null

Property Details

$env protected_oe property

protected Minify_Env $env
return Minify_Env

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface

$sourceFactory protected_oe property

protected Minify_Source_Factory $sourceFactory
return Minify_Source_Factory