public function addLoader($id, $loader)
    {
        if (!array_key_exists($id, $this->loaders)) {
            $this->loaders[$id] = $loader;
        }
    }
public function addLoader($id, $loader)
    {
        if (!array_key_exists($id, $this->loaders)) {
            $this->loaders[$id] = $loader;
        }
    }
public function addLoader ( $ id , $ loader ) { if ( ! array_key_exists ( $ id , $ this -> loaders ) ) { $ this -> loaders [ $ id ] = $ loader ; } }
Add a translation loader if it does not exist.

@param string          $id     The loader id.
@param LoaderInterface $loader A translation loader.
Add a translation loader if it does not exist .