Namespace change + assets
This commit is contained in:
		| @@ -12,7 +12,7 @@ | ||||
|  *  Jelmer Hinssen | ||||
|  */ | ||||
|  | ||||
| namespace InfD4p\Application\API; | ||||
| namespace Inforbank\Application\API; | ||||
|  | ||||
| use \Slim\App; | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|  *  Jelmer Hinssen | ||||
|  */ | ||||
|  | ||||
| namespace InfD4p\Application; | ||||
| namespace Inforbank\Application; | ||||
|  | ||||
| use \Slim\App; | ||||
|  | ||||
| @@ -31,9 +31,6 @@ class Main | ||||
|      */ | ||||
|     public function __construct(App $app) | ||||
|     { | ||||
|         // Load the API handler for the Omnipay plugin | ||||
|         new API\Handler($app); | ||||
|  | ||||
|         // Add the default view routes | ||||
|         $app->get('/[{name}]', function ($request, $response, $args) { | ||||
|             // Render index view | ||||
|   | ||||
| @@ -72,7 +72,10 @@ $container['renderer'] = function ($c) { | ||||
|  * | ||||
|  */ | ||||
|  | ||||
| new InfD4p\Application\Main($app); | ||||
| new Inforbank\Application\Main($app); | ||||
|  | ||||
| // Added API handler | ||||
| new Inforbank\Application\API\Handler($app); | ||||
|  | ||||
| /** | ||||
|  * Bij het maken van dit object is in de class de __construct functie aangeroepen met de parameter $app. De functies die daar in staan zullen nu worden uitgevoerd. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user