Merge pull request #112 from TheDoctor0/laravel-8

Support for Laravel 8.x
This commit is contained in:
Matthew Brown 2020-09-09 06:47:47 -04:00 committed by GitHub
commit a20a22a136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.2, 7.3]
illuminate_version: [5.8.*, 6.*, 7.*]
php: [7.3, 7.4]
illuminate_version: [6.*, 7.*, 8.*]
composer_flags: ['', '--prefer-lowest']
name: PHP ${{ matrix.php }} | Illuminate ${{ matrix.illuminate_version }} | Composer Flags ${{ matrix.composer_flags }}

View File

@ -6,11 +6,11 @@
"php": "^7.2|^8",
"ext-simplexml": "*",
"barryvdh/laravel-ide-helper": "^2.8.0",
"illuminate/container": "5.8.* || ^6.0 || ^7.0",
"illuminate/contracts": "5.8.* || ^6.0 || ^7.0",
"illuminate/database": "5.8.* || ^6.0 || ^7.0",
"illuminate/http": "5.8.* || ^6.0 || ^7.0",
"illuminate/support": "5.8.* || ^6.0 || ^7.0",
"illuminate/container": "5.8.* || ^6.0 || ^7.0 || ^8.0",
"illuminate/contracts": "5.8.* || ^6.0 || ^7.0 || ^8.0",
"illuminate/database": "5.8.* || ^6.0 || ^7.0 || ^8.0",
"illuminate/http": "5.8.* || ^6.0 || ^7.0 || ^8.0",
"illuminate/support": "5.8.* || ^6.0 || ^7.0 || ^8.0",
"vimeo/psalm": "^3.13.1",
"orchestra/testbench": "^3.8 || ^4.0 || ^5.0 || ^6.0"
},

View File

@ -203,8 +203,8 @@ class Plugin implements PluginEntryPointInterface
}
$resolver = new EngineResolver();
$resolver->register('php', function () : PhpEngine {
return new PhpEngine();
$resolver->register('php', function () use ($fake_filesystem) : PhpEngine {
return new PhpEngine($fake_filesystem);
});
$finder = new FileViewFinder($fake_filesystem, [dirname($file_path) . '/../resources/views']);
$factory = new Factory($resolver, $finder, new \Illuminate\Events\Dispatcher());