This bundle contains a variety of extensions for the Symfony HttpKernel component. See below for details on each extension this bundle provides and how it works.
Currently primary development takes place at a private repository at GitLab.com. The project on GitHub.com is updated regularly, but does not include any issues managed at GitLab. However, we are happily accepting issues and pull requests on GitHub as well! Feel free to open an issue or merge request. If we see broader community engagement in the future, we may consider switching our primary development to GitHub.
Please refer to the installation and usage documentation in the docs folder.
Please refer to the individual extension documentation in the docs/extensions folder.
Implement ContextAwareExceptionInterface to attach structured context to an exception, e.g. for returning it in an
API response:
class OrderNotFoundException extends \RuntimeException implements ContextAwareExceptionInterface
{
public function getContext(): OrderNotFoundContext
{
return new OrderNotFoundContext(/* ... */);
}
}Combined with the api-documentation-bundle, the context's shape can be documented automatically.
Please refer to the individual upgrade documentation in the root folder of the repository.
Note
Please refer to UPGRADE-1.0.md when upgrading from the fusonic/http-kernel-extensions package.
This is a subtree split of fusonic/php-extensions repository. Please create your pull requests there.