Comments (3)
Shouldn't we skip using ErrorHandlerMiddleware in cli mode?
Probably, but the middleware changing the exception renderer is unexpected to me. Let me try and reproduce this.
from app.
Are you running into incorrect output in a command that you're writing, or is it another scenario? Do you have any tips or code on how I could reproduce the issue you're encountering.
from app.
Seems I got this on some old app that didn't use regular way of console commands.
Instead, it accepts URL in command line - it was done to run app from both console and browser.
In webroot/index.php
it has
if (PHP_SAPI === 'cli') {
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
$_SERVER['REQUEST_URI'] = $argv[1] ?? null;
}
and then
$response = $server->run();
if (PHP_SAPI === 'cli') {
echo $response->getBody();
} else {
$server->emit($response);
}
from app.
Related Issues (20)
- add config/events.php with an example event listener HOT 3
- Fatal error: Uncaught Error: Class 'Cake\Utility\Security' not found in composer\src\Console\Installer.php:182 HOT 2
- ApplicationTest::testBootstrap() doesn't test existence of each plugin HOT 1
- H
- dd use vendor\sympfony\var_dumper\dump.php instead vendor\cakephp\cakephp\src\basic.php HOT 4
- Filmes e séries
- CSRF Token missing in error template HOT 7
- Locales path is wrong HOT 1
- Incorrect cache engine name in home page
- Tests fail not in debug mode HOT 1
- test/bootstrap.php and 'App.fullBaseUrl' HOT 3
- Error in session overwrite
- No installs cakephp/cakephp v4.4.4 (current) HOT 1
- Add git support for next gen picture. HOT 2
- Re-enable migration plugin for 5.x once it's compatible with Cake 5 HOT 2
- Bug in new version of app for BeforeFilter / BeforeRender
- Unused config options _cake_routes_ HOT 1
- Global function usage only in error with phpstan but not in production/unit test despite migration doc HOT 5
- Error templates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app.