Вход Регистрация
Файл: gapps/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php
Строк: 31
<?php

namespace IlluminateFoundationConsole;

use 
IlluminateConsoleCommand;

class 
ClearCompiledCommand extends Command
{
    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $name 'clear-compiled';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Remove the compiled class file';

    
/**
     * Execute the console command.
     *
     * @return void
     */
    
public function fire()
    {
        
$compiledPath $this->laravel->getCachedCompilePath();
        
$servicesPath $this->laravel->getCachedServicesPath();

        if (
file_exists($compiledPath)) {
            @
unlink($compiledPath);
        }

        if (
file_exists($servicesPath)) {
            @
unlink($servicesPath);
        }
    }
}
Онлайн: 1
Реклама