<?php
/*
* OAuth2 Client Bundle
* Copyright (c) KnpUniversity <http://knpuniversity.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KnpU\OAuth2ClientBundle;
use KnpU\OAuth2ClientBundle\DependencyInjection\KnpUOAuth2ClientExtension;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class KnpUOAuth2ClientBundle extends Bundle
{
/**
* Overridden to allow for the custom extension alias.
*/
public function getContainerExtension(): ?ExtensionInterface
{
if (null === $this->extension) {
return new KnpUOAuth2ClientExtension();
}
return $this->extension;
}
}