Skip to content

Commit 4a25ef9

Browse files
committed
move acl definitions to routes folder
1 parent 14a91d0 commit 4a25ef9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Spekkionu/ZendAcl/ZendAclServiceProvider.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function boot()
2424
{
2525
$this->publishes([
2626
dirname(dirname(__DIR__)) . '/config/zendacl.php' => config_path('zendacl.php'),
27-
dirname(dirname(__DIR__)) . '/config/acl.php' => app_path('Http/acl.php'),
27+
dirname(dirname(__DIR__)) . '/config/acl.php' => base_path('routes/acl.php'),
2828
dirname(dirname(__DIR__)) . '/views' => base_path('resources/views/vendor/zendacl'),
2929
]);
3030

@@ -45,7 +45,9 @@ public function register()
4545

4646
$this->app->singleton('acl', function (Application $app) {
4747
$acl = new Acl;
48-
if (file_exists(app_path('Http/acl.php'))) {
48+
if (file_exists(base_path('routes/acl.php'))) {
49+
include base_path('routes/acl.php');
50+
} elseif (file_exists(app_path('Http/acl.php'))) {
4951
include app_path('Http/acl.php');
5052
}
5153
return $acl;

0 commit comments

Comments
 (0)