Skip to content

Commit da3aad1

Browse files
committed
Minor tweak
1 parent 438afbf commit da3aad1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

configuration/multiple_kernels.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,19 @@ files so they don't collide with the files from ``src/Kernel.php``::
126126
// ... load only the config routes strictly needed for the API
127127
}
128128

129+
// If you need to run some logic to decide which bundles to load,
130+
// you might prefer to use the registerBundles() method instead
129131
private function getBundlesPath(): string
130132
{
131133
// load only the bundles strictly needed for the API
132134
return $this->getProjectDir().'/config/api_bundles.php';
133135
}
134136
}
135137

138+
.. versionadded:: 5.4
139+
140+
The ``getBundlesPath()`` method was introduced in Symfony 5.4.
141+
136142
Step 3) Define the Kernel Configuration
137143
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138144

0 commit comments

Comments
 (0)