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])
Afficher le fichier Open project: mrclay/minify Class Usage Examples

Protected Properties

Свойство Type Description
$env Minify_Env
$logger Psr\Log\LoggerInterface
$sourceFactory Minify_Source_Factory

Méthodes publiques

Méthode 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 méthode

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 méthode

Create controller sources and options for Minify::serve()
abstract public createConfiguration ( array $options ) : Minify_ServeConfiguration
$options array controller and Minify options
Résultat Minify_ServeConfiguration

getEnv() public méthode

public getEnv ( )

log() public méthode

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

Property Details

$env protected_oe property

protected Minify_Env $env
Résultat Minify_Env

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface

$sourceFactory protected_oe property

protected Minify_Source_Factory $sourceFactory
Résultat Minify_Source_Factory