home
/
zktecojo
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Providers
➕ New
📤 Upload
✎ Editing:
OptimizeServiceProvider.php
← Back
<?php namespace Illuminate\Foundation\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Foundation\Console\OptimizeCommand; use Illuminate\Foundation\Console\ClearCompiledCommand; class OptimizeServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = true; /** * Register the service provider. * * @return void */ public function register() { $this->registerOptimizeCommand(); $this->registerClearCompiledCommand(); $this->commands('command.optimize', 'command.clear-compiled'); } /** * Register the optimize command. * * @return void */ protected function registerOptimizeCommand() { $this->app->bindShared('command.optimize', function($app) { return new OptimizeCommand($app['composer']); }); } /** * Register the compiled file remover command. * * @return void */ protected function registerClearCompiledCommand() { $this->app->bindShared('command.clear-compiled', function() { return new ClearCompiledCommand; }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return array('command.optimize', 'command.clear-compiled'); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel