Skip to content

Commit

Permalink
EZP-27429: Optional SiteAccessAware Repository layer (#2064)
Browse files Browse the repository at this point in the history
* [REST] Forward BC to make sure all languages are loaded

* [Tests] Add testing of the SiteAccessAware Repository

* New SiteAccessAware Repository layer

Based on work done in ezsystems/ezpublish-kernel#1966

* Fix errror about missing class (loading order?)

* CS

* Add missing coreLoader in EzPublishCoreExtension

* Update PR

* Change ContentViewBuilder, Param Converters and relevant Twig helpers to use SiteAccessAware Repo

* fix review comments

* Remove RoleService which atm has no logic (re-add when we add prioritized languages there)

* Move LanguageResolver into own namespace and fix phpdoc to use FQCN

* Enable missing test coverage

* Update language args phpdoc on UrlAliasService

* [yml] Fixed wrong usage of inner_repository in siteaccessaware.repository
  • Loading branch information
andrerom authored and Łukasz Serwatka committed Jun 27, 2018
1 parent 679d357 commit 61fab10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Repository/Tests/SetupFactory/Legacy.php
Expand Up @@ -81,6 +81,10 @@ public function __construct()
self::$dsn = 'sqlite://:memory:';
}

if ($repositoryReference = getenv('REPOSITORY_SERVICE_ID')) {
$this->repositoryReference = $repositoryReference;
}

self::$db = preg_replace('(^([a-z]+).*)', '\\1', self::$dsn);

if (!isset(self::$ioRootDir)) {
Expand Down
5 changes: 5 additions & 0 deletions Repository/Values/Content/Language.php
Expand Up @@ -20,6 +20,11 @@
*/
class Language extends ValueObject
{
/**
* Constant for use in API's to specify that you want to load all languages.
*/
const ALL = [];

/**
* The language id (auto generated).
*
Expand Down

0 comments on commit 61fab10

Please sign in to comment.