src/Viserio/Component/Foundation/AbstractKernel.php
public function detectEnvironment(Closure $callback): string
    {
        $args = $_SERVER['argv'] ?? null;
        $env  = $this->getContainer()->get(EnvironmentContract::class)->detect($callback, $args);

        $this->resolvedOptions['env'] = $env;

        return $env;
    }
public function detectEnvironment(Closure $callback): string
    {
        $args = $_SERVER['argv'] ?? null;
        $env  = $this->getContainer()->get(EnvironmentContract::class)->detect($callback, $args);

        $this->resolvedOptions['env'] = $env;

        return $env;
    }
{@inheritdoc}