1
0

Namespace change + assets

This commit is contained in:
2017-02-23 10:31:05 +01:00
parent efa5baedb6
commit 36caeccb74
6 changed files with 26 additions and 27 deletions

View File

@ -12,7 +12,7 @@
* Jelmer Hinssen
*/
namespace InfD4p\Application\API;
namespace Inforbank\Application\API;
use \Slim\App;

View File

@ -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

View File

@ -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.