![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/demo.cartinsight.co/vendor/mrclay/minify/lib/Minify/Controller/ |
<?php /** * Class Minify_Controller_Base * @package Minify */ use Psr\Log\LoggerInterface; use Monolog\Logger; /** * Base class for Minify controller * * The controller class validates a request and uses it to create a configuration for Minify::serve(). * * @package Minify * @author Stephen Clay <[email protected]> */ abstract class Minify_Controller_Base implements Minify_ControllerInterface { /** * @var Minify_Env */ protected $env; /** * @var Minify_Source_Factory */ protected $sourceFactory; /** * @var LoggerInterface */ protected $logger; /** * @param Minify_Env $env * @param Minify_Source_Factory $sourceFactory * @param LoggerInterface $logger */ public function __construct(Minify_Env $env, Minify_Source_Factory $sourceFactory, LoggerInterface $logger = null) { $this->env = $env; $this->sourceFactory = $sourceFactory; if (!$logger) { $logger = new Logger('minify'); } $this->logger = $logger; } /** * Create controller sources and options for Minify::serve() * * @param array $options controller and Minify options * * @return Minify_ServeConfiguration */ abstract public function createConfiguration(array $options); /** * Send message to the Minify logger * * @param string $msg * * @return null * @deprecated use $this->logger */ public function log($msg) { trigger_error(__METHOD__ . ' is deprecated in Minify 3.0.', E_USER_DEPRECATED); $this->logger->info($msg); } /** * {@inheritdoc} */ public function getEnv() { return $this->env; } }