vendor/knpuniversity/oauth2-client-bundle/src/KnpUOAuth2ClientBundle.php line 17

Open in your IDE?
  1. <?php
  2. /*
  3.  * OAuth2 Client Bundle
  4.  * Copyright (c) KnpUniversity <http://knpuniversity.com/>
  5.  *
  6.  * For the full copyright and license information, please view the LICENSE
  7.  * file that was distributed with this source code.
  8.  */
  9. namespace KnpU\OAuth2ClientBundle;
  10. use KnpU\OAuth2ClientBundle\DependencyInjection\KnpUOAuth2ClientExtension;
  11. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. class KnpUOAuth2ClientBundle extends Bundle
  14. {
  15.     /**
  16.      * Overridden to allow for the custom extension alias.
  17.      */
  18.     public function getContainerExtension(): ?ExtensionInterface
  19.     {
  20.         if (null === $this->extension) {
  21.             return new KnpUOAuth2ClientExtension();
  22.         }
  23.         return $this->extension;
  24.     }
  25. }