vendor/sonata-project/intl-bundle/src/SonataIntlBundle.php line 19

  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the Sonata Project package.
  5.  *
  6.  * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace Sonata\IntlBundle;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. final class SonataIntlBundle extends Bundle
  15. {
  16.     /**
  17.      * Returns a cleaned version number.
  18.      */
  19.     public static function getSymfonyVersion(string $version): string
  20.     {
  21.         return implode('.'\array_slice(array_map(
  22.             static fn ($val) => (int) $val,
  23.             explode('.'$version)
  24.         ), 03));
  25.     }
  26.     public function build(ContainerBuilder $container): void
  27.     {
  28.     }
  29. }