-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.php
32 lines (27 loc) · 994 Bytes
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
declare(strict_types=1);
use Rosem\Component\App\App;
// Uncomment for debugging
//putenv('APP_ENV=development');
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Rosem application instance
| which serves as the "glue" for all the components of Rosem, and is
| the IoC container for the system binding all of the various parts.
|
*/
/** @noinspection PhpUnhandledExceptionInspection */
$app = new App(include __DIR__ . '/config/app.php');
$app->run();
// $entityManager = $app->get(\Doctrine\ORM\EntityManager::class);
// $newUser = new \Rosem\Access\Entity\User;
// $newUser->setEmail('roshe@smile.fr');
// $entityManager->persist($newUser);
// $entityManager->flush();
//} catch (\Exception $e) {
// echo $e->getMessage();
//}
//$g = $app->get(\Psrnext\GraphQL\GraphInterface::class);