public function registerLoader($alias, $loader)
    {
        if ($this->hasLoader($alias)) {
            throw new \RuntimeException(sprintf('Alias "%s" already used by another form loader', $alias));
        }

        $this->loaders[$alias] = $loader;
    }
public function registerLoader($alias, $loader)
    {
        if ($this->hasLoader($alias)) {
            throw new \RuntimeException(sprintf('Alias "%s" already used by another form loader', $alias));
        }

        $this->loaders[$alias] = $loader;
    }
public function registerLoader ( $ alias , $ loader ) { if ( $ this -> hasLoader ( $ alias ) ) { throw new \ RuntimeException ( sprintf ( 'Alias "%s" already used by another form loader' , $ alias ) ) ; } $ this -> loaders [ $ alias ] = $ loader ; }
Register a loader.

@param $alias
@param $loader
Register a loader .