implement environment model

This commit is contained in:
yggverse 2024-05-04 19:26:15 +03:00
parent ecc7c66143
commit 048ae2c3ac
2 changed files with 39 additions and 3 deletions

View file

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