Skip to content

Commit

Permalink
Avoid deprecated Laravel code
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jun 30, 2019
1 parent a0b5749 commit 0330692
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ CHANGE LOG
==========


## V10.3.1 (Upcoming)

* Avoid deprecated Laravel code


## V10.3 (17/02/2019)

* Added Laravel 5.8 support
Expand Down
5 changes: 3 additions & 2 deletions src/MarkdownServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use GrahamCampbell\Markdown\Engines\PhpMarkdownEngine;
use Illuminate\Contracts\Container\Container;
use Illuminate\Foundation\Application as LaravelApplication;
use Illuminate\Support\Arr;
use Illuminate\Support\ServiceProvider;
use Illuminate\View\Engines\CompilerEngine;
use Laravel\Lumen\Application as LumenApplication;
Expand Down Expand Up @@ -165,9 +166,9 @@ protected function registerEnvironment()

$config = $app->config->get('markdown');

$environment->mergeConfig(array_except($config, ['extensions', 'views']));
$environment->mergeConfig(Arr::except($config, ['extensions', 'views']));

foreach ((array) array_get($config, 'extensions') as $extension) {
foreach ((array) Arr::get($config, 'extensions') as $extension) {
$environment->addExtension($app->make($extension));
}

Expand Down

0 comments on commit 0330692

Please sign in to comment.