| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function register(): void |
||
| 48 | { |
||
| 49 | $this->getContainer()->share(Config::class, function () { |
||
| 50 | $dotenv = new Dotenv($this->basePath()); |
||
| 51 | |||
| 52 | return new Config($dotenv->load()); |
||
| 53 | }); |
||
| 54 | |||
| 55 | $this->getContainer()->share('env', $this->environment()); |
||
| 56 | $this->getContainer()->share('base_path', $this->basePath()); |
||
| 57 | $this->getContainer()->share('resources_path', $this->resourcesPath()); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |