MiniAsset\Middleware\AssetMiddleware::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( AssetConfig $config, string $outputDir = null, string $urlPrefix = '/asset/' )
$config MiniAsset\AssetConfig The config instance for your application.
$outputDir string The directory development build caches should be stored in. Defaults to sys_get_temp_dir().
$urlPrefix string The URL prefix that assets are under. Defaults to /asset/.
    public function __construct(AssetConfig $config, $outputDir = null, $urlPrefix = '/asset/')
    {
        $this->config = $config;
        $this->outputDir = $outputDir ?: sys_get_temp_dir() . DIRECTORY_SEPARATOR;
        $this->urlPrefix = $urlPrefix;
    }