<?php
/**
 * Main entry point
 *
 * @author    Ivanis Kouamé <ivanis.kouame@smile.fr>
 * @copyright 2015 Smile
 */

use Symfony\Component\HttpFoundation\Request;
const ROOT_PATH = __DIR__;

require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../app/bootstrap.php';

$app = new Silex\Application();
$app->post('/',function (Request $request) use ($app, $notificationHandler) {
    $notificationHandler->handleHipayNotification($request->get('xml'));
});

$app->run();

<?php
/**
 * Main entry point
 *
 * @author    Ivanis Kouamé <ivanis.kouame@smile.fr>
 * @copyright 2015 Smile
 */

use Symfony\Component\HttpFoundation\Request;
const ROOT_PATH = __DIR__;

require_once __DIR__ . '/../app/bootstrap.php';

$app = new Silex\Application();
$app->post('/',function (Request $request) use ($app, $notificationHandler) {
    $notificationHandler->handleHipayNotification($request->get('xml'));
});

$app->get('/', function () {
   return 'Hello World';
});

$app->run();

Add Hello world to verify installation
Add Hello world to verify installation
