mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
33 lines
719 B
PHP
33 lines
719 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
$smarty = app('smarty.view');
|
|
view()->share('smarty', $smarty);
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
if ($this->app->environment() !== 'production') {
|
|
$this->app->register(\Way\Generators\GeneratorsServiceProvider::class);
|
|
$this->app->register(\Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class);
|
|
}
|
|
}
|
|
}
|