libs/foundation/src/Application.php
/**
     * @param CreateInfo $info
     * @return void
     * @throws RegistrationException
     */
@param CreateInfo $info
@return void
@throws RegistrationException
@param CreateInfo $info @return void @throws RegistrationException
private function bootExtensions(CreateInfo $info): void
    {
        $this->extensions = new Loader($this->container);
        $this->container->instance($this->extensions)
            ->as(RepositoryInterface::class)
        ;
        foreach ($info->extensions as $extension) {
            if (\is_string($extension)) {
                $extension = $this->container->make($extension);
            }
            $this->load($extension);
        }
    }
private function bootExtensions ( CreateInfo $ info ) : void { $ this -> extensions = new Loader ( $ this -> container ) ; $ this -> container -> instance ( $ this -> extensions ) -> as ( RepositoryInterface :: class ) ; foreach ( $ info -> extensions as $ extension ) { if ( \ is_string ( $ extension ) ) { $ extension = $ this -> container -> make ( $ extension ) ; } $ this -> load ( $ extension ) ; } }
@param CreateInfo $info
 @return void
 @throws RegistrationException
@param CreateInfo $info @return void @throws RegistrationException