Fixed CS
This commit is contained in:
davidcallizaya
2017-08-09 15:48:00 -04:00
parent 21a0b9508e
commit 427d74f68e
6 changed files with 32 additions and 18 deletions

View File

@@ -1,5 +1,15 @@
<?php <?php
use Illuminate\Contracts\Console\Kernel as Kernel2;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Http\Kernel as Kernel4;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Console\Kernel;
use Illuminate\Foundation\Exceptions\Handler;
use Illuminate\Foundation\Http\Kernel as Kernel3;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\RotatingFileHandler;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Create The Application | Create The Application
@@ -11,7 +21,7 @@
| |
*/ */
$app = new Illuminate\Foundation\Application( $app = new Application(
realpath(__DIR__ . '/../') realpath(__DIR__ . '/../')
); );
@@ -27,28 +37,28 @@ $app = new Illuminate\Foundation\Application(
*/ */
$app->singleton( $app->singleton(
Illuminate\Contracts\Http\Kernel::class, Kernel4::class,
Illuminate\Foundation\Http\Kernel::class Kernel3::class
); );
$app->singleton( $app->singleton(
Illuminate\Contracts\Console\Kernel::class, Kernel2::class,
Illuminate\Foundation\Console\Kernel::class Kernel::class
); );
$app->singleton( $app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class, ExceptionHandler::class,
Illuminate\Foundation\Exceptions\Handler::class Handler::class
); );
$app->configureMonologUsing(function ($monolog) use ($app) { $app->configureMonologUsing(function ($monolog) use ($app) {
$monolog->pushHandler( $monolog->pushHandler(
(new Monolog\Handler\RotatingFileHandler( (new RotatingFileHandler(
// Set the log path // Set the log path
$app->storagePath() . '/logs/processmaker.log', $app->storagePath() . '/logs/processmaker.log',
// Set the number of daily files you want to keep // Set the number of daily files you want to keep
$app->make('config')->get('app.log_max_files', 5) $app->make('config')->get('app.log_max_files', 5)
))->setFormatter(new Monolog\Formatter\LineFormatter(null, null, true, true)) ))->setFormatter(new LineFormatter(null, null, true, true))
); );
}); });

View File

@@ -1,5 +1,9 @@
<?php <?php
use Illuminate\Cache\CacheServiceProvider;
use Illuminate\Filesystem\FilesystemServiceProvider;
use Illuminate\View\ViewServiceProvider;
return [ return [
'name' => env('APP_NAME', 'ProcessMaker'), 'name' => env('APP_NAME', 'ProcessMaker'),
'env' => env('APP_ENV', 'production'), 'env' => env('APP_ENV', 'production'),
@@ -8,9 +12,9 @@ return [
'log_level' => env('APP_LOG_LEVEL', 'debug'), 'log_level' => env('APP_LOG_LEVEL', 'debug'),
'providers' => [ 'providers' => [
Illuminate\Filesystem\FilesystemServiceProvider::class, FilesystemServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class, CacheServiceProvider::class,
Illuminate\View\ViewServiceProvider::class, ViewServiceProvider::class,
], ],
'aliases' => [ 'aliases' => [