Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 19bb19b

Browse filesBrowse files
committed
minor #45 Fixed useless calls (HeahDude)
This PR was merged into the master branch. Discussion ---------- Fixed useless calls Commits ------- 8e5d62d Fixed useless calls
2 parents 82d7b05 + 8e5d62d commit 19bb19b
Copy full SHA for 19bb19b

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎symfony/framework-bundle/3.3/src/Kernel.php

Copy file name to clipboardExpand all lines: symfony/framework-bundle/3.3/src/Kernel.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function registerBundles(): iterable
3131
{
3232
$contents = require dirname(__DIR__).'/etc/bundles.php';
3333
foreach ($contents as $class => $envs) {
34-
if (isset($envs['all']) || isset($envs[$this->getEnvironment()])) {
34+
if (isset($envs['all']) || isset($envs[$this->environment])) {
3535
yield new $class();
3636
}
3737
}
@@ -41,8 +41,8 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
4141
{
4242
$confDir = dirname(__DIR__).'/etc';
4343
$loader->import($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob');
44-
if (is_dir($confDir.'/packages/'.$this->getEnvironment())) {
45-
$loader->import($confDir.'/packages/'.$this->getEnvironment().'/**/*'.self::CONFIG_EXTS, 'glob');
44+
if (is_dir($confDir.'/packages/'.$this->environment)) {
45+
$loader->import($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
4646
}
4747
$loader->import($confDir.'/container'.self::CONFIG_EXTS, 'glob');
4848
}
@@ -53,8 +53,8 @@ protected function configureRoutes(RouteCollectionBuilder $routes): void
5353
if (is_dir($confDir.'/routing/')) {
5454
$routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob');
5555
}
56-
if (is_dir($confDir.'/routing/'.$this->getEnvironment())) {
57-
$routes->import($confDir.'/routing/'.$this->getEnvironment().'/**/*'.self::CONFIG_EXTS, '/', 'glob');
56+
if (is_dir($confDir.'/routing/'.$this->environment)) {
57+
$routes->import($confDir.'/routing/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
5858
}
5959
$routes->import($confDir.'/routing'.self::CONFIG_EXTS, '/', 'glob');
6060
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.