Skip to content

Commit

Permalink
Updated composer.json to allow Symfony 4 installations
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver committed Dec 27, 2017
1 parent e605256 commit 5d40adc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
3 changes: 2 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
* This is the class that validates and merges configuration from your app/config files
*
Expand All @@ -23,4 +24,4 @@ public function getConfigTreeBuilder()
// more information on that topic.
return $treeBuilder;
}
}
}
8 changes: 8 additions & 0 deletions Handler/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ static public function getSubscribedEvents()
* in the html status exception handler load the backtrace and send it in an email.
*
* @param GetResponseForExceptionEvent $event
*
* @throws \Twig_Error_Loader
* @throws \Twig_Error_Runtime
* @throws \Twig_Error_Syntax
*/
public function onKernelException(GetResponseForExceptionEvent $event)
{
Expand Down Expand Up @@ -241,6 +245,10 @@ private function buildBacktrace(GetResponseForExceptionEvent $event)
* @author Wendo
*
* @param FilterResponseEvent $responseObject
*
* @throws \Twig_Error_Loader
* @throws \Twig_Error_Runtime
* @throws \Twig_Error_Syntax
*/
public function onKernelResponse(FilterResponseEvent $responseObject)
{
Expand Down
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@
],
"require": {
"php": ">=7.0",
"symfony/symfony": ">= 3.0.0",
"symfony/filesystem": "~3.0|~4.0",
"symfony/dependency-injection": "~3.0|~4.0",
"symfony/security": "~3.0|~4.0",
"symfony/config": "~3.0|~4.0",
"symfony/event-dispatcher": "~3.0|~4.0",
"symfony/http-foundation": "~3.0|~4.0",
"symfony/http-kernel": "~3.0|~4.0",
"symfony/twig-bundle": "~3.0|~4.0",
"symfony/swiftmailer-bundle": ">=2.6.0"
},
"autoload": {
"psr-4": {
"Kickin\\ExceptionHandlerBundle\\": ""
}
}
}
}

0 comments on commit 5d40adc

Please sign in to comment.