eZ\Publish\Core\Repository\Tests\Service\Integration\Legacy\Utils::getRepository PHP Method

getRepository() final public static method

final public static getRepository ( ) : eZ\Publish\API\Repository\Repository
return eZ\Publish\API\Repository\Repository
    public static final function getRepository()
    {
        if (static::$setupFactory === null) {
            static::$setupFactory = static::getSetupFactory();
        }
        // Return repository
        return static::$setupFactory->getRepository();
    }

Usage Example

Esempio n. 1
0
 protected function getRepository()
 {
     try {
         return Utils::getRepository();
     } catch (Exception $e) {
         $this->markTestIncomplete($e->getMessage());
     }
 }
All Usage Examples Of eZ\Publish\Core\Repository\Tests\Service\Integration\Legacy\Utils::getRepository