Skip to content

I can't seem to get the 'app.down' config to be acknowledged. #184

Description

@mychidarko
    I can't seem to get the 'app.down' config to be acknowledged.
<?php

use Leaf\App;

require __DIR__ . '/vendor/autoload.php';

$app = new App([
    'app.down' => true
]);

// these don't work either
// $app->config('app.down', true);
// $app->configure([
//     'app.down' => true
// ]);

$app->get('/', function () use ($app) {
    $app->response()->json(Leaf\Config::get('app'));
});

$app->run();

Originally posted by @kczx3 in #37 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions