portfolio/src/App.php

35 lines
609 B
PHP
Raw Normal View History

2022-06-21 10:33:35 +00:00
<?php
namespace App;
use App\Util\ContainerBuilder;
class App
{
/**
* The absolute fs path of the root of the application
*
* @var string
*/
private static string $basePath = '';
public function __construct()
{
}
protected function configureContainer(\DI\ContainerBuilder $builder)
{
ContainerBuilder::getContainerBuilder($builder);
}
public static function setBasePath(string $basePath): void
{
self::$basePath = $basePath;
}
public static function getBasePath(): string
{
return self::$basePath;
}
}