public function addResource($format, $resource, $locale, $domain = null)
    {
        if (null !== $domain) {
            $this->domains[] = $domain;
        }

        parent::addResource($format, $resource, $locale, $domain);
    }
public function addResource($format, $resource, $locale, $domain = null)
    {
        if (null !== $domain) {
            $this->domains[] = $domain;
        }

        parent::addResource($format, $resource, $locale, $domain);
    }
public function addResource ( $ format , $ resource , $ locale , $ domain = null ) { if ( null !== $ domain ) { $ this -> domains [ ] = $ domain ; } parent :: addResource ( $ format , $ resource , $ locale , $ domain ) ; }
Adds a resource.

@see    SymfonyTranslator::addResource() Keep track of the translation domains.
@param  string      $format   The name of the loader (@see addLoader()).
@param  mixed       $resource The resource name.
@param  string      $locale   The locale.
@param  string|null $domain   The domain.
@return void
Adds a resource .