public function addLoaders(array $loaders) {
        foreach ($loaders as $loader) {
            if (is_string($loader)) {
                $loader = new $loader();
            }

            if (!$loader instanceof InputLoaderInterface) {
                $name = is_object($loader) ? get_class($loader) : (string) $loader;
                throw new InvalidArgumentException('Given loader (' . $name . ') does not implement LoaderInterface', 500);
            }

            $this->registerLoader($loader);
        }

        return $this;
    }
public function addLoaders(array $loaders) {
        foreach ($loaders as $loader) {
            if (is_string($loader)) {
                $loader = new $loader();
            }

            if (!$loader instanceof InputLoaderInterface) {
                $name = is_object($loader) ? get_class($loader) : (string) $loader;
                throw new InvalidArgumentException('Given loader (' . $name . ') does not implement LoaderInterface', 500);
            }

            $this->registerLoader($loader);
        }

        return $this;
    }
public function addLoaders ( array $ loaders ) { foreach ( $ loaders as $ loader ) { if ( is_string ( $ loader ) ) { $ loader = new $ loader ( ) ; } if ( ! $ loader instanceof InputLoaderInterface ) { $ name = is_object ( $ loader ) ? get_class ( $ loader ) : ( string ) $ loader ; throw new InvalidArgumentException ( 'Given loader (' . $ name . ') does not implement LoaderInterface' , 500 ) ; } $ this -> registerLoader ( $ loader ) ; } return $ this ; }
Add a list of input loaders to the manager.

@param array<InputLoaderInterface|string> $loaders A list of loaders to add to the manager.
@return self
Add a list of input loaders to the manager .