autoload
This commit is contained in:
parent
c91ccb9480
commit
078bdb1f5c
|
@ -13,5 +13,11 @@
|
||||||
"email": "michal@fufle.net"
|
"email": "michal@fufle.net"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"minimum-stability": "dev"
|
"minimum-stability": "dev",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Fufle\\": "src/",
|
||||||
|
"App\\": "app/"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/../vendor/autoload.php';
|
require_once __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
use Fufle\Database;
|
use App\Model\Job;
|
||||||
|
use Fufle\Database\ConnectionManager;
|
||||||
echo SayHello::world();
|
|
||||||
|
|
||||||
$dns = 'pgsql:host=localhost;port=5432;dbname=dynamic_dev;user=test;password=pass123';
|
$dns = 'pgsql:host=localhost;port=5432;dbname=dynamic_dev;user=test;password=pass123';
|
||||||
ConnectionManager::Connect($dns);
|
ConnectionManager::Connect($dns);
|
||||||
|
|
Loading…
Reference in New Issue