mirror of
https://github.com/YGGverse/Pulsar.git
synced 2026-04-01 10:15:32 +00:00
implement environment model
This commit is contained in:
parent
ecc7c66143
commit
048ae2c3ac
2 changed files with 39 additions and 3 deletions
|
|
@ -15,12 +15,14 @@ require_once __DIR__ .
|
|||
DIRECTORY_SEPARATOR . 'vendor' .
|
||||
DIRECTORY_SEPARATOR . 'autoload.php';
|
||||
|
||||
// Init profile argument
|
||||
if (empty($argv[1])) throw new \Exception;
|
||||
// Init environment
|
||||
$environment = new \Yggverse\Pulsar\Model\Environment(
|
||||
$argv
|
||||
);
|
||||
|
||||
// Init config
|
||||
$config = new \Yggverse\Pulsar\Model\Config(
|
||||
$argv[1]
|
||||
$environment->get('config')
|
||||
);
|
||||
|
||||
$config = $config->get(); // registry only
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue