1 <?php 
declare(strict_types
=1); 
   4  * This file is part of the Rapsys AirBundle package. 
   6  * (c) Raphaël Gertz <symfony@rapsys.eu> 
   8  * For the full copyright and license information, please view the LICENSE 
   9  * file that was distributed with this source code. 
  12 namespace Rapsys\AirBundle
; 
  14 use Symfony\Component\DependencyInjection\Extension\ExtensionInterface
; 
  15 use Symfony\Component\HttpKernel\Bundle\Bundle
; 
  20 class RapsysAirBundle 
extends Bundle 
{ 
  24         public function getContainerExtension(): ?ExtensionInterface 
{ 
  25                 //Return created container extension 
  26                 return $this->createContainerExtension(); 
  32          * @return string The bundle alias 
  34         public static function getAlias(): string { 
  36                 if ($npos = strrpos(static::class, '\\')) { 
  44                 //With trailing bundle 
  45                 if (substr(static::class, -strlen('Bundle'), strlen('Bundle')) === 'Bundle') { 
  47                         $bpos = strlen(static::class) - $npos - strlen('Bundle'); 
  51                         $bpos = strlen(static::class) - $npos; 
  54                 //Return lowercase bundle alias 
  55                 return strtolower(substr(static::class, $npos, $bpos)); 
  59          * Return bundle version 
  61          * @return string The bundle version 
  63         public static function getVersion(): string {