src/mako/application/Application.php
protected function initialize(): void
	{
		// Create container instance and register it in itself so that it can be injected

		$this->container = $this->containerFactory();

		$this->container->registerInstance([Container::class, 'container'], $this->container);

		// Register self so that the application instance can be injected

		$this->container->registerInstance([Application::class, 'app'], $this);

		// Register file system instance

		$this->container->registerInstance([FileSystem::class, 'fileSystem'], new FileSystem);

		// Register config instance

		$this->config = $this->configFactory();

		$this->container->registerInstance([Config::class, 'config'], $this->config);
	}
protected function initialize(): void
	{
		// Create container instance and register it in itself so that it can be injected

		$this->container = $this->containerFactory();

		$this->container->registerInstance([Container::class, 'container'], $this->container);

		// Register self so that the application instance can be injected

		$this->container->registerInstance([Application::class, 'app'], $this);

		// Register file system instance

		$this->container->registerInstance([FileSystem::class, 'fileSystem'], new FileSystem);

		// Register config instance

		$this->config = $this->configFactory();

		$this->container->registerInstance([Config::class, 'config'], $this->config);
	}
protected function initialize ( ) : void { // Create container instance and register it in itself so that it can be injected $ this -> container = $ this -> containerFactory ( ) ; $ this -> container -> registerInstance ( [ Container :: class , 'container' ] , $ this -> container ) ; // Register self so that the application instance can be injected $ this -> container -> registerInstance ( [ Application :: class , 'app' ] , $ this ) ; // Register file system instance $ this -> container -> registerInstance ( [ FileSystem :: class , 'fileSystem' ] , new FileSystem ) ; // Register config instance $ this -> config = $ this -> configFactory ( ) ; $ this -> container -> registerInstance ( [ Config :: class , 'config' ] , $ this -> config ) ; }
Sets up the framework core.
Sets up the framework core .