File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public static function about()
1616 'email ' => 'hi@alistairkearney.com '
1717 ],
1818 'version ' => 'Symphony 2.6.7 ' ,
19- 'release-date ' => '2016-04-25T02:10:22+00:00 ' ,
19+ 'release-date ' => '2016-06-16 ' ,
2020 'trigger-condition ' => 'POST|PUT|PATCH|DELETE '
2121 ];
2222 }
@@ -54,7 +54,7 @@ public function load()
5454 // #6 - Check if the controller exists before trying to include it.
5555 // Throw an exception if it cannot be located.
5656 if (!class_exists ($ controllerPath )) {
57- throw new Lib \Exceptions \ControllerNotFoundException (" Controller ' { $ controllerPath} ' does not exist. " );
57+ throw new Lib \Exceptions \ControllerNotFoundException ($ controllerPath );
5858 }
5959
6060 $ controller = new $ controllerPath ();
@@ -67,7 +67,7 @@ public function load()
6767 $ method = strtolower ($ request ->getMethod ());
6868
6969 if (!method_exists ($ controller , $ method )){
70- throw new Lib \Exceptions \ControllerNotValidException ( " 405 method not found ( " . $ request ->getMethod (). " ) " );
70+ throw new Lib \Exceptions \MethodNotAllowedException ( $ request ->getMethod ());
7171 }
7272
7373 $ controller ->execute ();
You can’t perform that action at this time.
0 commit comments