diff --git a/src/ServiceRegistry.php b/src/ServiceRegistry.php new file mode 100644 index 0000000..6866a6d --- /dev/null +++ b/src/ServiceRegistry.php @@ -0,0 +1,28 @@ +get($name); + } + + /** + * Returns the service container. + */ + protected static function getContainer(): ContainerBuilder { + if (self::$container === NULL) { + self::$container = require realpath(__DIR__ . '/../includes/container.php'); + } + return self::$container; + } + +}