Translation/Loader/PdoLoader.php
/**
     * Retrieves all locale-domain combinations and add them as a resource to
     * the translator.
     *
     * @param Translator $translator
     *
     * @throws \RuntimeException
     */
Retrieves all locale-domain combinations and add them as a resource to
the translator.

@param Translator $translator


Retrieves all locale - domain combinations and add them as a resource to the translator . @param Translator $translator
public function registerResources(Translator $translator)
    {
        $stmt = $this->getResourcesStatement();
        if (false === $stmt->execute()) {
            throw new \RuntimeException('Could not fetch translation data from database.');
        }
        while ($row = $stmt->fetch()) {
            $translator->addResource('pdo', $this, $row['locale'], $row['domain']);
        }
    }
public function registerResources ( Translator $ translator ) { $ stmt = $ this -> getResourcesStatement ( ) ; if ( false === $ stmt -> execute ( ) ) { throw new \ RuntimeException ( 'Could not fetch translation data from database.' ) ; } while ( $ row = $ stmt -> fetch ( ) ) { $ translator -> addResource ( 'pdo' , $ this , $ row [ 'locale' ] , $ row [ 'domain' ] ) ; } }
Retrieves all locale-domain combinations and add them as a resource to
 the translator.
Retrieves all locale - domain combinations and add them as a resource to the translator .
//$stmt->bindColumn('locale', $locale); //$stmt->bindColumn('domain', $domain);