This can be simplified as ``:method:`Symfony\\Component\\HttpKernel\\Kernel::getEnvironment` ``