File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ private function publishConfigAuth(): void
108108 $ file = 'Config/Auth.php ' ;
109109 $ replaces = [
110110 'namespace CodeIgniter\Shield\Config ' => 'namespace Config ' ,
111- 'use CodeIgniter \\Config \\BaseConfig; ' => 'CodeIgniter \\Shield \\Config \\Auth as ShieldAuth; ' ,
111+ 'use CodeIgniter \\Config \\BaseConfig; ' => 'use CodeIgniter \\Shield \\Config \\Auth as ShieldAuth; ' ,
112112 'extends BaseConfig ' => 'extends ShieldAuth ' ,
113113 ];
114114
@@ -120,7 +120,7 @@ private function publishConfigAuthGroups(): void
120120 $ file = 'Config/AuthGroups.php ' ;
121121 $ replaces = [
122122 'namespace CodeIgniter\Shield\Config ' => 'namespace Config ' ,
123- 'use CodeIgniter \\Config \\BaseConfig; ' => 'CodeIgniter \\Shield \\Config \\AuthGroups as ShieldAuthGroups; ' ,
123+ 'use CodeIgniter \\Config \\BaseConfig; ' => 'use CodeIgniter \\Shield \\Config \\AuthGroups as ShieldAuthGroups; ' ,
124124 'extends BaseConfig ' => 'extends ShieldAuthGroups ' ,
125125 ];
126126
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ public function testRun(): void
5353
5454 $ auth = file_get_contents ($ appFolder . 'Config/Auth.php ' );
5555 $ this ->assertStringContainsString ('namespace Config; ' , $ auth );
56+ $ this ->assertStringContainsString ('use CodeIgniter\Shield\Config\Auth as ShieldAuth; ' , $ auth );
5657
5758 $ routes = file_get_contents ($ appFolder . 'Config/Routes.php ' );
5859 $ this ->assertStringContainsString ('service( \'auth \')->routes($routes); ' , $ routes );
You can’t perform that action at this time.
0 commit comments