File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,6 @@ files so they don't collide with the files from ``src/Kernel.php``::
90
90
{
91
91
use MicroKernelTrait;
92
92
93
- public function registerBundles()
94
- {
95
- // load only the bundles strictly needed for the API
96
- $contents = require $this->getProjectDir().'/config/api_bundles.php';
97
- foreach ($contents as $class => $envs) {
98
- if ($envs[$this->environment] ?? $envs['all'] ?? false) {
99
- yield new $class();
100
- }
101
- }
102
- }
103
-
104
93
public function getProjectDir(): string
105
94
{
106
95
return \dirname(__DIR__);
@@ -133,6 +122,11 @@ files so they don't collide with the files from ``src/Kernel.php``::
133
122
$confDir = $this->getProjectDir().'/config/api';
134
123
// ... load only the config routes strictly needed for the API
135
124
}
125
+
126
+ private function getBundlesPath(): string
127
+ {
128
+ return $this->getProjectDir().'/config/api_bundles.php';
129
+ }
136
130
}
137
131
138
132
Step 3) Define the Kernel Configuration
You can’t perform that action at this time.
0 commit comments