Файл: gapps/vendor/prettus/l5-repository/src/Prettus/Repository/Providers/RepositoryServiceProvider.php
Строк: 62
<?php
namespace PrettusRepositoryProviders;
use IlluminateSupportServiceProvider;
/**
* Class RepositoryServiceProvider
* @package PrettusRepositoryProviders
*/
class RepositoryServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__ . '/../../../resources/config/repository.php' => config_path('repository.php')
]);
$this->mergeConfigFrom(__DIR__ . '/../../../resources/config/repository.php', 'repository');
$this->loadTranslationsFrom(__DIR__ . '/../../../resources/lang', 'repository');
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->commands('PrettusRepositoryGeneratorsCommandsRepositoryCommand');
$this->commands('PrettusRepositoryGeneratorsCommandsTransformerCommand');
$this->commands('PrettusRepositoryGeneratorsCommandsPresenterCommand');
$this->commands('PrettusRepositoryGeneratorsCommandsEntityCommand');
$this->commands('PrettusRepositoryGeneratorsCommandsValidatorCommand');
$this->commands('PrettusRepositoryGeneratorsCommandsControllerCommand');
$this->commands('PrettusRepositoryGeneratorsCommandsBindingsCommand');
$this->commands('PrettusRepositoryGeneratorsCommandsCriteriaCommand');
$this->app->register('PrettusRepositoryProvidersEventServiceProvider');
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [];
}
}