Skip to content

Commit 0754104

Browse files
committed
add laravel 5.4 compatibility
1 parent 9d03399 commit 0754104

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ php:
44
- 5.6
55
- 7.0
66
- 7.1
7-
- hhvm
7+
- 7.2
8+
9+
matrix:
10+
allow_failures:
11+
- php: 7.2
812

913
before_script:
1014
- curl -s http://getcomposer.org/installer | php

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Add the following line to the `require` section of `composer.json`:
3636

3737
1. Add `'Spekkionu\ZendAcl\ZendAclServiceProvider',` to the service provider list in `config/app.php`.
3838
2. Add `'Acl' => 'Spekkionu\ZendAcl\Facades\Acl',` to the list of aliases in `config/app.php`.
39-
3. Run `php artisan vendor:publish --provider=Spekkionu\ZendAcl\ZendAclServiceProvider`
39+
3. Run `php artisan vendor:publish --provider="Spekkionu\ZendAcl\ZendAclServiceProvider"`
4040

4141
After publishing the permissions will be defined in `app/Http/acl.php`.
4242

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"require": {
1313
"php": ">=5.5.9",
1414
"zendframework/zend-permissions-acl": "2.6.*",
15-
"illuminate/support": "5.1.*|5.2.*|5.3.*"
15+
"illuminate/support": "5.*"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "~4.8.31",
18+
"phpunit/phpunit": "~5.0",
1919
"mockery/mockery": "~0.9.7"
2020
},
2121
"autoload": {

src/Spekkionu/ZendAcl/ZendAclLumenServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function register()
3434
{
3535
$this->app->configure('zendacl');
3636

37-
$this->app['acl'] = $this->app->share(function (Application $app) {
37+
$this->app['acl'] = $this->app->singleton(function (Application $app) {
3838
$acl = new Acl;
3939
if (file_exists(base_path('app/Http/acl.php'))) {
4040
include base_path('app/Http/acl.php');

src/Spekkionu/ZendAcl/ZendAclServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function register()
4141
$this->mergeConfigFrom(
4242
dirname(dirname(__DIR__)) . '/config/zendacl.php',
4343
'zendacl'
44-
);
44+
);
4545

46-
$this->app['acl'] = $this->app->share(function (Application $app) {
46+
$this->app->singleton('acl', function (Application $app) {
4747
$acl = new Acl;
4848
if (file_exists(app_path('Http/acl.php'))) {
4949
include app_path('Http/acl.php');

0 commit comments

Comments
 (0)