Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mychidarko opened this issue Mar 11, 2023 · 5 comments
Closed

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

mychidarko opened this issue Mar 11, 2023 · 5 comments

Comments

@mychidarko
Copy link
Member

    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)

@mychidarko
Copy link
Member Author

@kczx3, I've opened an issue here. I'll keep this thread updated

@kczx3
Copy link

kczx3 commented Mar 11, 2023

Awesome, many thanks!

@mychidarko mychidarko transferred this issue from leafsphp/router Mar 11, 2023
@mychidarko
Copy link
Member Author

This has been fixed now @kczx3. You can run leaf install leaf or composer require leafs/leaf to update to the latest version.

@kczx3
Copy link

kczx3 commented Mar 11, 2023

Works now! Thank you again!

@mychidarko
Copy link
Member Author

Awesome 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants