Skip to content

Commit a5ad254

Browse files
author
vcorre
committed
Remove old & useless code
1 parent 1d8c5ae commit a5ad254

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/DependencyInjection/Compiler/ProxyCompilerPass.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,9 @@ protected function autowireDefaultConfig($name, ContainerBuilder $container)
110110

111111
$this->defaultPheanstalkName = $name;
112112
$legacyAlias = $container->setAlias('pyrowman.pheanstalk', 'pyrowman.pheanstalk.' . $name);
113-
if ($legacyAlias) {
114-
$legacyAlias->setPublic(true);
115-
}
113+
$legacyAlias->setPublic(true);
116114

117115
$autoWiringAlias = $container->setAlias(PheanstalkInterface::class, 'pyrowman.pheanstalk');
118-
if ($autoWiringAlias) {
119-
$autoWiringAlias->setPublic(true);
120-
}
116+
$autoWiringAlias->setPublic(true);
121117
}
122118
}

0 commit comments

Comments
 (0)