c877cf8264
This PR was merged into the 4.3-dev branch.
Discussion
----------
[HttpKernel] Better exception page when the invokable controller returns nothing
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #27138
| License | MIT
| Doc PR |
---
__Prerequisites__
_Configure invokable controller_
```php
# config/routes.yaml
index:
path: /
controller: App\Controller\Start
```
__Before:__
![before](https://user-images.githubusercontent.com/11414342/53577698-ca739000-3b7e-11e9-98ac-8c8e27626fbe.png)
__After:__
![after](https://user-images.githubusercontent.com/11414342/53577733-df502380-3b7e-11e9-8377-a4a97ea73df8.png)
---
Take a look for an enhancement/refactoring in `HttpKernel.php`
Commits
-------
|
||
---|---|---|
.. | ||
Bundle | ||
CacheClearer | ||
CacheWarmer | ||
Config | ||
Controller | ||
ControllerMetadata | ||
DataCollector | ||
Debug | ||
DependencyInjection | ||
Event | ||
EventListener | ||
Exception | ||
Fixtures | ||
Fragment | ||
HttpCache | ||
Log | ||
Profiler | ||
ClientTest.php | ||
HttpKernelTest.php | ||
KernelTest.php | ||
Logger.php | ||
TestHttpKernel.php | ||
UriSignerTest.php |