src/Viserio/Component/HttpFoundation/Console/Command/DownCommand.php
public function handle(): int
    {
        $kernel = $this->getContainer()->get(ConsoleKernelContract::class);

        \file_put_contents(
            $kernel->getStoragePath('framework' . \DIRECTORY_SEPARATOR . 'down'),
            \json_encode($this->getDownPayload(), \JSON_PRETTY_PRINT)
        );

        $this->comment('Application is now in maintenance mode.');

        return 0;
    }
public function handle(): int
    {
        $kernel = $this->getContainer()->get(ConsoleKernelContract::class);

        \file_put_contents(
            $kernel->getStoragePath('framework' . \DIRECTORY_SEPARATOR . 'down'),
            \json_encode($this->getDownPayload(), \JSON_PRETTY_PRINT)
        );

        $this->comment('Application is now in maintenance mode.');

        return 0;
    }
{@inheritdoc}