public function import(array $loader)
    {
        $this->loader = $loader;
        foreach ($loader as $alias => $namespace) {
            $alias = $this->alias($alias);
            $this->container->set($alias, function ($c) use ($alias, $namespace) {
                if (is_callable([$namespace, 'make'])) {
                    call_user_func_array($namespace . '::make', [$alias, $c]);
                }

                return new $namespace();
            });
        }
    }
public function import(array $loader)
    {
        $this->loader = $loader;
        foreach ($loader as $alias => $namespace) {
            $alias = $this->alias($alias);
            $this->container->set($alias, function ($c) use ($alias, $namespace) {
                if (is_callable([$namespace, 'make'])) {
                    call_user_func_array($namespace . '::make', [$alias, $c]);
                }

                return new $namespace();
            });
        }
    }
public function import ( array $ loader ) { $ this -> loader = $ loader ; foreach ( $ loader as $ alias => $ namespace ) { $ alias = $ this -> alias ( $ alias ) ; $ this -> container -> set ( $ alias , function ( $ c ) use ( $ alias , $ namespace ) { if ( is_callable ( [ $ namespace , 'make' ] ) ) { call_user_func_array ( $ namespace . '::make' , [ $ alias , $ c ] ) ; } return new $ namespace ( ) ; } ) ; } }
import custom files keep to psr-4

@param $loader
import custom files keep to psr - 4