1 <?php 
declare(strict_types
=1); 
   4  * This file is part of the Rapsys PackBundle 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\PackBundle
; 
  14 use Symfony\Component\DependencyInjection\Extension\ExtensionInterface
; 
  15 use Symfony\Component\HttpKernel\Bundle\Bundle
; 
  17 use Rapsys\PackBundle\DependencyInjection\RapsysPackExtension
; 
  22 class RapsysPackBundle 
extends Bundle 
{ 
  26         public function getContainerExtension(): ?ExtensionInterface 
{ 
  27                 //Return created container extension 
  28                 return $this->createContainerExtension(); 
  34          * @return string The bundle alias 
  36         public static function getAlias(): string { 
  38                 if ($npos = strrpos(static::class, '\\')) { 
  46                 //With trailing bundle 
  47                 if (substr(static::class, -strlen('Bundle'), strlen('Bundle')) === 'Bundle') { 
  49                         $bpos = strlen(static::class) - $npos - strlen('Bundle'); 
  53                         $bpos = strlen(static::class) - $npos; 
  56                 //Return lowercase bundle alias 
  57                 return strtolower(substr(static::class, $npos, $bpos)); 
  61          * Return bundle version 
  63          * @return string The bundle version 
  65         public static function getVersion(): string {