LazyRecord\ServiceContainer::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        $this['config_loader'] = function ($c) {
            $config = ConfigLoader::getInstance();
            $config->loadFromSymbol(true);
            // force loading
            if ($config->isLoaded()) {
                $config->initForBuild();
            }
            return $config;
        };
        $this['logger'] = function ($c) {
            return Console::getInstance()->getLogger();
        };
        $this['schema_finder'] = function ($c) {
            $finder = new SchemaFinder();
            $finder->paths = $c['config_loader']->getSchemaPaths() ?: [];
            return $finder;
        };
    }