File tree Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 4
4
- 5.6
5
5
- 7.0
6
6
- 7.1
7
- - hhvm
7
+ - 7.2
8
+
9
+ matrix :
10
+ allow_failures :
11
+ - php : 7.2
8
12
9
13
before_script :
10
14
- curl -s http://getcomposer.org/installer | php
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Add the following line to the `require` section of `composer.json`:
36
36
37
37
1 . Add ` 'Spekkionu\ZendAcl\ZendAclServiceProvider', ` to the service provider list in ` config/app.php ` .
38
38
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" `
40
40
41
41
After publishing the permissions will be defined in ` app/Http/acl.php ` .
42
42
Original file line number Diff line number Diff line change 12
12
"require" : {
13
13
"php" : " >=5.5.9" ,
14
14
"zendframework/zend-permissions-acl" : " 2.6.*" ,
15
- "illuminate/support" : " 5.1.*|5.2.*|5.3. *"
15
+ "illuminate/support" : " 5.*"
16
16
},
17
17
"require-dev" : {
18
- "phpunit/phpunit" : " ~4.8.31 " ,
18
+ "phpunit/phpunit" : " ~5.0 " ,
19
19
"mockery/mockery" : " ~0.9.7"
20
20
},
21
21
"autoload" : {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public function register()
34
34
{
35
35
$ this ->app ->configure ('zendacl ' );
36
36
37
- $ this ->app ['acl ' ] = $ this ->app ->share (function (Application $ app ) {
37
+ $ this ->app ['acl ' ] = $ this ->app ->singleton (function (Application $ app ) {
38
38
$ acl = new Acl ;
39
39
if (file_exists (base_path ('app/Http/acl.php ' ))) {
40
40
include base_path ('app/Http/acl.php ' );
Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ public function register()
41
41
$ this ->mergeConfigFrom (
42
42
dirname (dirname (__DIR__ )) . '/config/zendacl.php ' ,
43
43
'zendacl '
44
- );
44
+ );
45
45
46
- $ this ->app [ 'acl ' ] = $ this -> app -> share ( function (Application $ app ) {
46
+ $ this ->app -> singleton ( 'acl ' , function (Application $ app ) {
47
47
$ acl = new Acl ;
48
48
if (file_exists (app_path ('Http/acl.php ' ))) {
49
49
include app_path ('Http/acl.php ' );
You can’t perform that action at this time.
0 commit comments