-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
For more details see https://issues.ibexa.co/browse/IBX-6906 and #322 Key changes: * Dropped ViewMatcherRegistryPass in favor of tagged iterator Symfony DIC * Refactored ViewMatcherRegistry to rely on an injectable list of matchers * Refactored ServiceAwareMatcherFactory for identifier-based view matchers * Extracted ViewMatcherRegistryInterface * [Tests] Added coverage for ServiceAwareMatcherFactory * [PHPStan] Aligned baseline with the changes
- Loading branch information
Showing
11 changed files
with
191 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
src/bundle/Core/DependencyInjection/Compiler/ViewMatcherRegistryPass.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) Ibexa AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Ibexa\Contracts\Core\MVC\View; | ||
|
||
use Ibexa\Core\MVC\Symfony\Matcher\ViewMatcherInterface; | ||
|
||
interface ViewMatcherRegistryInterface | ||
{ | ||
public function setMatcher(string $matcherIdentifier, ViewMatcherInterface $matcher): void; | ||
|
||
public function getMatcher(string $matcherIdentifier): ViewMatcherInterface; | ||
|
||
public function hasMatcher(string $matcherIdentifier): bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
tests/bundle/Core/DependencyInjection/Compiler/ViewMatcherRegistryPassTest.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.