This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpKernel/Tests
Fabien Potencier c877cf8264 feature #30408 [HttpKernel] Better exception page when the invokable controller returns nothing (dimabory)
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
-------

f6c1622fb5 [HttpKernel] Better exception page when the invokable controller returns nothing
2019-03-05 10:44:46 +01:00
..
Bundle Merge branch '2.8' into 3.4 2018-07-26 11:06:28 +02:00
CacheClearer Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
CacheWarmer Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
Config switched array() to [] 2019-01-16 10:39:14 +01:00
Controller fixed CS 2019-01-16 20:07:26 +01:00
ControllerMetadata Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00
DataCollector Drop more usages of Serializable 2019-03-04 09:45:35 +01:00
Debug [VarDumper] add link to source next to class names 2019-02-19 22:52:41 +01:00
DependencyInjection fixed CS 2019-01-16 21:35:37 +01:00
Event switched array() to [] 2019-01-16 10:39:14 +01:00
EventListener [HttpKernel] Prevent search engines from indexing dev applications 2019-03-04 21:45:08 +01:00
Exception fixed CS 2019-01-16 19:35:49 +01:00
Fixtures Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
Fragment fixed CS 2019-01-16 21:35:37 +01:00
HttpCache Merge branch '3.4' into 4.2 2019-03-03 19:11:24 +01:00
Log switched array() to [] 2019-01-16 10:39:14 +01:00
Profiler Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
ClientTest.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
HttpKernelTest.php [HttpKernel] Better exception page when the invokable controller returns nothing 2019-03-05 10:07:05 +02:00
KernelTest.php Drop more usages of Serializable 2019-03-04 09:45:35 +01:00
Logger.php switched array() to [] 2019-01-16 10:39:14 +01:00
TestHttpKernel.php switched array() to [] 2019-01-16 10:39:14 +01:00
UriSignerTest.php [HttpKernel] Correctly Render Signed URIs Containing Fragments 2018-12-24 13:29:26 +00:00