1 <?php 
declare(strict_types
=1); 
   4  * This file is part of the Rapsys BlogBundle 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\BlogBundle
; 
  14 use Symfony\Component\DependencyInjection\Extension\ExtensionInterface
; 
  15 use Symfony\Component\HttpKernel\Bundle\Bundle
; 
  17 class RapsysBlogBundle 
extends Bundle 
{ 
  21         public function getContainerExtension(): ?ExtensionInterface 
{ 
  22                 //Return created container extension 
  23                 return $this->createContainerExtension(); 
  29          * @return string The bundle alias 
  31         public static function getAlias(): string { 
  33                 if ($npos = strrpos(static::class, '\\')) { 
  41                 //With trailing bundle 
  42                 if (substr(static::class, -strlen('Bundle'), strlen('Bundle')) === 'Bundle') { 
  44                         $bpos = strlen(static::class) - $npos - strlen('Bundle'); 
  48                         $bpos = strlen(static::class) - $npos; 
  51                 //Return lowercase bundle alias 
  52                 return strtolower(substr(static::class, $npos, $bpos)); 
  56          * Return bundle version 
  58          * @return string The bundle version 
  60         public static function getVersion(): string {