Skip to content

Commit

Permalink
Twig support added
Browse files Browse the repository at this point in the history
  • Loading branch information
giannisdaras committed Nov 14, 2017
1 parent c6a2ab2 commit 5e3c134
Show file tree
Hide file tree
Showing 6 changed files with 409 additions and 60 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0"
"laravel/tinker": "~1.0",
"rcrowe/twigbridge": "^0.9.5"
},
"require-dev": {
"filp/whoops": "~2.0",
Expand Down
131 changes: 130 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 59 additions & 57 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
| framework needs to place the application's name in a notification or
| any other location as required by the application or its packages.
|
*/
*/

'name' => env('APP_NAME', 'Laravel'),
'name' => env('APP_NAME', 'Laravel'),

/*
|--------------------------------------------------------------------------
Expand All @@ -24,9 +24,9 @@
| running in. This may determine how you prefer to configure various
| services your application utilizes. Set this in your ".env" file.
|
*/
*/

'env' => env('APP_ENV', 'production'),
'env' => env('APP_ENV', 'production'),

/*
|--------------------------------------------------------------------------
Expand All @@ -37,9 +37,9 @@
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
*/

'debug' => env('APP_DEBUG', false),
'debug' => env('APP_DEBUG', false),

/*
|--------------------------------------------------------------------------
Expand All @@ -50,9 +50,9 @@
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
*/

'url' => env('APP_URL', 'http://localhost'),
'url' => env('APP_URL', 'http://localhost'),

/*
|--------------------------------------------------------------------------
Expand All @@ -63,9 +63,9 @@
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
*/

'timezone' => 'UTC',
'timezone' => 'UTC',

/*
|--------------------------------------------------------------------------
Expand All @@ -76,9 +76,9 @@
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
*/

'locale' => 'en',
'locale' => 'en',

/*
|--------------------------------------------------------------------------
Expand All @@ -89,7 +89,7 @@
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
*/

'fallback_locale' => 'en',

Expand All @@ -102,11 +102,11 @@
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/
*/

'key' => env('APP_KEY'),
'key' => env('APP_KEY'),

'cipher' => 'AES-256-CBC',
'cipher' => 'AES-256-CBC',

/*
|--------------------------------------------------------------------------
Expand All @@ -119,11 +119,11 @@
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
*/
*/

'log' => env('APP_LOG', 'single'),
'log' => env('APP_LOG', 'single'),

'log_level' => env('APP_LOG_LEVEL', 'debug'),
'log_level' => env('APP_LOG_LEVEL', 'debug'),

/*
|--------------------------------------------------------------------------
Expand All @@ -134,9 +134,9 @@
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
*/

'providers' => [
'providers' => [

/*
* Laravel Framework Service Providers...
Expand Down Expand Up @@ -176,6 +176,7 @@
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
TwigBridge\ServiceProvider::class,

],

Expand All @@ -188,43 +189,44 @@
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/

'aliases' => [

'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
'Bus' => Illuminate\Support\Facades\Bus::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class,
'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
*/

'aliases' => [

'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
'Bus' => Illuminate\Support\Facades\Bus::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class,
'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'Notification' => Illuminate\Support\Facades\Notification::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'Twig' => TwigBridge\Facade\Twig::class,

],

Expand Down
Loading

0 comments on commit 5e3c134

Please sign in to comment.