Skip to content

Commit

Permalink
IBX-2153: Moved ConfigResolverInterface into contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Jan 31, 2022
1 parent 08e318e commit 6942176
Show file tree
Hide file tree
Showing 57 changed files with 125 additions and 125 deletions.
4 changes: 2 additions & 2 deletions src/bundle/Controller/BookmarkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Ibexa\Contracts\AdminUi\Controller\Controller;
use Ibexa\Contracts\Core\Repository\BookmarkService;
use Ibexa\Contracts\Core\Repository\LocationService;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Pagerfanta\Pagerfanta;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand All @@ -39,7 +39,7 @@ class BookmarkController extends Controller
/** @var \Ibexa\AdminUi\Form\SubmitHandler */
private $submitHandler;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/ContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
use Ibexa\Contracts\Core\Repository\Values\User\Limitation;
use Ibexa\Core\Base\Exceptions\BadStateException;
use Ibexa\Core\Helper\TranslationHelper;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
Expand Down Expand Up @@ -81,7 +81,7 @@ class ContentController extends Controller
/** @var \Ibexa\Core\Helper\TranslationHelper */
private $translationHelper;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

/** @var \Ibexa\AdminUi\Siteaccess\SiteAccessNameGeneratorInterface */
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/ContentDraftController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Ibexa\AdminUi\UI\Value\Content\VersionId;
use Ibexa\Contracts\AdminUi\Controller\Controller;
use Ibexa\Contracts\Core\Repository\ContentService;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Pagerfanta\Pagerfanta;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand All @@ -37,7 +37,7 @@ class ContentDraftController extends Controller
/** @var \Ibexa\AdminUi\Form\SubmitHandler */
private $submitHandler;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/ContentOnTheFlyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use Ibexa\Core\Base\Exceptions\BadStateException;
use Ibexa\Core\Base\Exceptions\InvalidArgumentException;
use Ibexa\Core\Base\Exceptions\UnauthorizedException;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProviderInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
Expand Down Expand Up @@ -68,7 +68,7 @@ class ContentOnTheFlyController extends Controller
/** @var \Ibexa\AdminUi\Form\ActionDispatcher\CreateContentOnTheFlyDispatcher */
private $createContentActionDispatcher;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

/** @var \Symfony\Contracts\EventDispatcher\EventDispatcherInterface */
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/ContentTypeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft;
use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Pagerfanta;
Expand Down Expand Up @@ -78,7 +78,7 @@ class ContentTypeController extends Controller
private $contentTypeDraftMapper;

/**
* @var \Ibexa\Core\MVC\ConfigResolverInterface
* @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface
*/
private $configResolver;

Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/ContentTypeGroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Ibexa\Contracts\AdminUi\Notification\TranslatableNotificationHandlerInterface;
use Ibexa\Contracts\Core\Repository\ContentTypeService;
use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroup;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Pagerfanta;
Expand All @@ -40,7 +40,7 @@ class ContentTypeGroupController extends Controller
/** @var \Ibexa\AdminUi\Form\SubmitHandler */
private $submitHandler;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
6 changes: 3 additions & 3 deletions src/bundle/Controller/ContentViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
use Ibexa\Contracts\Core\Repository\Values\Content\Language;
use Ibexa\Contracts\Core\Repository\Values\Content\Location;
use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProviderInterface;
use Ibexa\Core\MVC\Symfony\View\ContentView;
use Symfony\Component\Form\FormFactoryInterface;
Expand Down Expand Up @@ -79,7 +79,7 @@ class ContentViewController extends Controller
/** @var \Symfony\Component\Form\FormFactoryInterface */
private $sfFormFactory;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

/** @var \Ibexa\Contracts\Core\Repository\Repository */
Expand All @@ -103,7 +103,7 @@ class ContentViewController extends Controller
* @param \Ibexa\Contracts\Core\Repository\ContentService $contentService
* @param \Ibexa\Contracts\Core\Repository\LocationService $locationService
* @param \Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProviderInterface $userLanguagePreferenceProvider
* @param \Ibexa\Core\MVC\ConfigResolverInterface $configResolver
* @param \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface $configResolver
* @param \Ibexa\Contracts\Core\Repository\Repository $repository
* @param \Ibexa\Contracts\Core\Repository\PermissionResolver $permissionResolver
* @param \Ibexa\AdminUi\Permission\LookupLimitationsTransformer $lookupLimitationsTransformer
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/LanguageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Ibexa\Contracts\AdminUi\Notification\TranslatableNotificationHandlerInterface;
use Ibexa\Contracts\Core\Repository\LanguageService;
use Ibexa\Contracts\Core\Repository\Values\Content\Language;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Pagerfanta;
Expand All @@ -42,7 +42,7 @@ class LanguageController extends Controller
/** @var \Ibexa\AdminUi\Form\Factory\FormFactory */
private $formFactory;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/NotificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Ibexa\Bundle\AdminUi\View\Template\EzPagerfantaTemplate;
use Ibexa\Contracts\AdminUi\Controller\Controller;
use Ibexa\Contracts\Core\Repository\NotificationService;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\Notification\Renderer\Registry;
use Pagerfanta\Pagerfanta;
use Symfony\Component\HttpFoundation\JsonResponse;
Expand All @@ -32,7 +32,7 @@ class NotificationController extends Controller
/** @var \Symfony\Contracts\Translation\TranslatorInterface */
protected $translator;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/ObjectStateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo;
use Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState;
use Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -49,7 +49,7 @@ class ObjectStateController extends Controller
/** @var \Ibexa\Contracts\Core\Repository\PermissionResolver */
private $permissionResolver;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/ObjectStateGroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Ibexa\Contracts\AdminUi\Notification\TranslatableNotificationHandlerInterface;
use Ibexa\Contracts\Core\Repository\ObjectStateService;
use Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand All @@ -37,7 +37,7 @@ class ObjectStateGroupController extends Controller
/** @var \Ibexa\AdminUi\Form\SubmitHandler */
private $submitHandler;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/PolicyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Ibexa\Contracts\Core\Repository\RoleService;
use Ibexa\Contracts\Core\Repository\Values\User\Policy;
use Ibexa\Contracts\Core\Repository\Values\User\Role;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Pagerfanta;
Expand Down Expand Up @@ -50,7 +50,7 @@ class PolicyController extends Controller
/** @var \Ibexa\AdminUi\Form\SubmitHandler */
private $submitHandler;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/RoleAssignmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Ibexa\Contracts\Core\Repository\Values\User\Limitation\SubtreeLimitation;
use Ibexa\Contracts\Core\Repository\Values\User\Role;
use Ibexa\Contracts\Core\Repository\Values\User\RoleAssignment;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Pagerfanta;
Expand All @@ -43,7 +43,7 @@ class RoleAssignmentController extends Controller
/** @var \Ibexa\AdminUi\Form\SubmitHandler */
private $submitHandler;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException;
use Ibexa\Contracts\Core\Repository\RoleService;
use Ibexa\Contracts\Core\Repository\Values\User\Role;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Pagerfanta;
Expand Down Expand Up @@ -55,7 +55,7 @@ class RoleController extends Controller
/** @var \Ibexa\AdminUi\Form\SubmitHandler */
private $submitHandler;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/SectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause;
use Ibexa\Contracts\Core\Repository\Values\Content\Section;
use Ibexa\Contracts\Core\Repository\Values\User\Limitation\NewSectionLimitation;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Ibexa\Core\Pagination\Pagerfanta\ContentSearchAdapter;
use Pagerfanta\Adapter\ArrayAdapter;
Expand Down Expand Up @@ -80,7 +80,7 @@ class SectionController extends Controller
/** @var \Ibexa\Contracts\AdminUi\Permission\PermissionCheckerInterface */
private $permissionChecker;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Controller/TrashController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use Ibexa\Contracts\Core\Repository\UserService;
use Ibexa\Contracts\Core\Repository\Values\Content\TrashItem;
use Ibexa\Contracts\Core\Repository\Values\User\User;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProviderInterface;
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
use Pagerfanta\Pagerfanta;
Expand Down Expand Up @@ -59,7 +59,7 @@ class TrashController extends Controller
/** @var \Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProviderInterface */
private $userLanguagePreferenceProvider;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

/** @var \Ibexa\AdminUi\QueryType\TrashSearchQueryType */
Expand Down
6 changes: 3 additions & 3 deletions src/lib/EventListener/RequestLocaleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Ibexa\AdminUi\EventListener;

use Ibexa\AdminUi\Specification\SiteAccess\IsAdmin;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProviderInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -32,15 +32,15 @@ class RequestLocaleListener implements EventSubscriberInterface
/** @var \Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProviderInterface */
private $userLanguagePreferenceProvider;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

/**
* @param array $siteAccessGroups
* @param array $availableTranslations
* @param \Symfony\Contracts\Translation\TranslatorInterface $translator
* @param \Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProviderInterface $userLanguagePreferenceProvider
* @param \Ibexa\Core\MVC\ConfigResolverInterface $configResolver
* @param \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface $configResolver
*/
public function __construct(
array $siteAccessGroups,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/EventListener/SearchViewFilterParametersListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Ibexa\AdminUi\Form\Data\Content\Draft\ContentEditData;
use Ibexa\AdminUi\Form\Type\Content\Draft\ContentEditType;
use Ibexa\AdminUi\Specification\SiteAccess\IsAdmin;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\View\Event\FilterViewParametersEvent;
use Ibexa\Core\MVC\Symfony\View\ViewEvents;
use Ibexa\Search\View\SearchView;
Expand All @@ -23,7 +23,7 @@ final class SearchViewFilterParametersListener implements EventSubscriberInterfa
/** @var \Symfony\Component\Form\FormFactoryInterface */
private $formFactory;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

/** @var \Symfony\Component\HttpFoundation\RequestStack */
Expand Down
4 changes: 2 additions & 2 deletions src/lib/EventListener/ViewTemplatesListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use Ibexa\ContentForms\User\View\UserCreateView;
use Ibexa\ContentForms\User\View\UserUpdateView;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\MVC\Symfony\Event\PreContentViewEvent;
use Ibexa\Core\MVC\Symfony\MVCEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
Expand All @@ -20,7 +20,7 @@
*/
class ViewTemplatesListener implements EventSubscriberInterface
{
/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(ConfigResolverInterface $configResolver)
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/EventListener/BuildPathFromRootListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use Ibexa\Contracts\Core\Repository\LocationService;
use Ibexa\Contracts\Core\Repository\URLAliasService;
use Ibexa\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Symfony\Component\Form\FormEvent;

class BuildPathFromRootListener
Expand All @@ -21,7 +21,7 @@ class BuildPathFromRootListener
/** @var \Ibexa\Contracts\Core\Repository\URLAliasService */
private $urlAliasService;

/** @var \Ibexa\Core\MVC\ConfigResolverInterface */
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
private $configResolver;

public function __construct(
Expand Down
Loading

0 comments on commit 6942176

Please sign in to comment.