diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-09-07 08:17:24 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-09-07 08:17:24 +0100 |
| commit | 43e2cc54543d9f79c9805f752e78e25c351646ff (patch) | |
| tree | f8f252a8f0f6ff6061c177456865102c50a04810 /vendor/symfony/http-kernel/Bundle/Bundle.php | |
| parent | 4e96702fabf715ae955aafd54002fb5c57a109cf (diff) | |
| download | webtrees-43e2cc54543d9f79c9805f752e78e25c351646ff.tar.gz webtrees-43e2cc54543d9f79c9805f752e78e25c351646ff.tar.bz2 webtrees-43e2cc54543d9f79c9805f752e78e25c351646ff.zip | |
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/http-kernel/Bundle/Bundle.php')
| -rw-r--r-- | vendor/symfony/http-kernel/Bundle/Bundle.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/vendor/symfony/http-kernel/Bundle/Bundle.php b/vendor/symfony/http-kernel/Bundle/Bundle.php index 26dea9b205..a769e96034 100644 --- a/vendor/symfony/http-kernel/Bundle/Bundle.php +++ b/vendor/symfony/http-kernel/Bundle/Bundle.php @@ -18,8 +18,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; /** - * An implementation of BundleInterface that adds a few conventions - * for DependencyInjection extensions and Console commands. + * An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions. * * @author Fabien Potencier <fabien@symfony.com> */ @@ -87,9 +86,7 @@ abstract class Bundle implements BundleInterface } } - if ($this->extension) { - return $this->extension; - } + return $this->extension ?: null; } /** @@ -154,9 +151,7 @@ abstract class Bundle implements BundleInterface */ protected function createContainerExtension() { - if (class_exists($class = $this->getContainerExtensionClass())) { - return new $class(); - } + return class_exists($class = $this->getContainerExtensionClass()) ? new $class() : null; } private function parseClassName() |
