Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change namespace to Yiisoft\Yii\View\Renderer\* #118

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 7.0.0 under development

- Chg #115: Only a full path can now be used as a layout (@vjik)
- Chg #116: Rename package to `yiisoft/yii-view-renderer` (@vjik)
- Chg #116, #117, #118: Rename package to `yiisoft/yii-view-renderer` (@vjik)

## 6.1.1 June 06, 2024

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ You can get an instance of a response with deferred rendering as follows:
* @var \Yiisoft\View\WebView $webView
*/

$viewRenderer = new \Yiisoft\Yii\View\ViewRenderer(
$viewRenderer = new \Yiisoft\Yii\View\Renderer\ViewRenderer(
$dataResponseFactory,
$aliases,
$webView,
Expand Down Expand Up @@ -129,7 +129,7 @@ With this approach, you do not need to specify the directory name each time when

```php
use Psr\Http\Message\ResponseInterface;
use Yiisoft\Yii\View\ViewRenderer;
use Yiisoft\Yii\View\Renderer\ViewRenderer;

class SiteController
{
Expand Down Expand Up @@ -166,8 +166,8 @@ In addition to parameters passed directly when rendering the view template, you
available in all views. In order to do it you need a class implementing at least one of the injection interfaces:

```php
use Yiisoft\Yii\View\CommonParametersInjectionInterface;
use Yiisoft\Yii\View\LayoutParametersInjectionInterface;
use Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface;
use Yiisoft\Yii\View\Renderer\LayoutParametersInjectionInterface;

final class MyParametersInjection implements
CommonParametersInjectionInterface,
Expand Down Expand Up @@ -196,8 +196,8 @@ Link tags and meta tags should be organized in the same way.
```php
use Yiisoft\Html\Html;
use Yiisoft\View\WebView;
use Yiisoft\Yii\View\LinkTagsInjectionInterface;
use Yiisoft\Yii\View\MetaTagsInjectionInterface;
use Yiisoft\Yii\View\Renderer\LinkTagsInjectionInterface;
use Yiisoft\Yii\View\Renderer\MetaTagsInjectionInterface;

final class MyTagsInjection implements
LinkTagsInjectionInterface,
Expand Down Expand Up @@ -263,14 +263,14 @@ and will overwrite the injected content parameters if their names match.
#### Injections lazy loading

You can use lazy loading for injections. Injections will be created by container that implements
`Yiisoft\Yii\View\InjectionContainerInterface`. Out of the box, it is available in `InjectionContainer` that is based on PSR-11 compatible
`Yiisoft\Yii\View\Renderer\InjectionContainerInterface`. Out of the box, it is available in `InjectionContainer` that is based on PSR-11 compatible
container.

1. Add injection container to `ViewRenderer` constructor:

```php
use Yiisoft\Yii\View\ViewRenderer;
use Yiisoft\Yii\View\InjectionContainer\InjectionContainer;
use Yiisoft\Yii\View\Renderer\ViewRenderer;
use Yiisoft\Yii\View\Renderer\InjectionContainer\InjectionContainer;

/**
* @var Psr\Container\ContainerInterface $container
Expand Down
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ application when you upgrade the package from one version to another.
## Upgrade from 6.x

- Change layout value that passed to `ViewRenderer` constructor and `withLayout()` method to full path.
- Change namespace `Yiisoft\Yii\View\*` to `Yiisoft\Yii\View\Renderer\*`.
- Rename package configuration parameters key from "yiisoft/yii-view" to "yiisoft/yii-view-renderer".
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
},
"autoload": {
"psr-4": {
"Yiisoft\\Yii\\View\\": "src"
"Yiisoft\\Yii\\View\\Renderer\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Yiisoft\\Yii\\View\\Tests\\": "tests"
"Yiisoft\\Yii\\View\\Renderer\\Tests\\": "tests"
}
},
"extra": {
Expand Down
6 changes: 3 additions & 3 deletions config/di-web.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

use Yiisoft\Yii\View\InjectionContainer\InjectionContainer;
use Yiisoft\Yii\View\InjectionContainer\InjectionContainerInterface;
use Yiisoft\Yii\View\ViewRenderer;
use Yiisoft\Yii\View\Renderer\InjectionContainer\InjectionContainer;
use Yiisoft\Yii\View\Renderer\InjectionContainer\InjectionContainerInterface;
use Yiisoft\Yii\View\Renderer\ViewRenderer;

/** @var array $params */

Expand Down
2 changes: 1 addition & 1 deletion config/events-web.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

use Yiisoft\View\Event\WebView\AfterRender;
use Yiisoft\Yii\View\Debug\WebViewCollector;
use Yiisoft\Yii\View\Renderer\Debug\WebViewCollector;

if (!($params['yiisoft/yii-debug']['enabled'] ?? false)) {
return [];
Expand Down
2 changes: 1 addition & 1 deletion config/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use Yiisoft\Yii\View\Debug\WebViewCollector;
use Yiisoft\Yii\View\Renderer\Debug\WebViewCollector;

return [
'yiisoft/yii-view-renderer' => [
Expand Down
2 changes: 1 addition & 1 deletion src/CommonParametersInjectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View;
namespace Yiisoft\Yii\View\Renderer;

/**
* `CommonParametersInjectionInterface` is an interface that must be implemented by classes to inject
Expand Down
2 changes: 1 addition & 1 deletion src/Csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View;
namespace Yiisoft\Yii\View\Renderer;

use Stringable;
use Yiisoft\Html\Html;
Expand Down
2 changes: 1 addition & 1 deletion src/CsrfViewInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View;
namespace Yiisoft\Yii\View\Renderer;

use LogicException;
use Yiisoft\Csrf\CsrfMiddleware;
Expand Down
2 changes: 1 addition & 1 deletion src/Debug/WebViewCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Debug;
namespace Yiisoft\Yii\View\Renderer\Debug;

use Yiisoft\View\Event\WebView\AfterRender;
use Yiisoft\Yii\Debug\Collector\CollectorInterface;
Expand All @@ -25,10 +25,10 @@
return;
}

$this->renders[] = [

Check warning on line 28 in src/Debug/WebViewCollector.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; + $this->renders[] = ['file' => $event->getFile(), 'parameters' => $event->getParameters()]; } private function reset() : void {
'output' => $event->getResult(),

Check warning on line 29 in src/Debug/WebViewCollector.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; + $this->renders[] = ['output' > $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; } private function reset() : void {
'file' => $event->getFile(),

Check warning on line 30 in src/Debug/WebViewCollector.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; + $this->renders[] = ['output' => $event->getResult(), 'file' > $event->getFile(), 'parameters' => $event->getParameters()]; } private function reset() : void {
'parameters' => $event->getParameters(),

Check warning on line 31 in src/Debug/WebViewCollector.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; + $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' > $event->getParameters()]; } private function reset() : void {
];
}

Expand Down
4 changes: 2 additions & 2 deletions src/Exception/InvalidLinkTagException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Exception;
namespace Yiisoft\Yii\View\Renderer\Exception;

use RuntimeException;
use Yiisoft\FriendlyException\FriendlyExceptionInterface;
Expand All @@ -27,7 +27,7 @@ public function getSolution(): ?string
return 'Got link tag:' . "\n" . var_export($this->tag, true) . <<<SOLUTION


In injection that implements `Yiisoft\Yii\View\LinkTagsInjectionInterface` defined link tags in the method `getLinkTags()`.
In injection that implements `Yiisoft\Yii\View\Renderer\LinkTagsInjectionInterface` defined link tags in the method `getLinkTags()`.

The link tag can be define in the following ways:

Expand Down
4 changes: 2 additions & 2 deletions src/Exception/InvalidMetaTagException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Exception;
namespace Yiisoft\Yii\View\Renderer\Exception;

use RuntimeException;
use Yiisoft\FriendlyException\FriendlyExceptionInterface;
Expand All @@ -27,7 +27,7 @@ public function getSolution(): ?string
return 'Got meta tag:' . "\n" . var_export($this->tag, true) . <<<SOLUTION


In injection that implements `Yiisoft\Yii\View\MetaTagsInjectionInterface` defined meta tags in the method `getMetaTags()`.
In injection that implements `Yiisoft\Yii\View\Renderer\MetaTagsInjectionInterface` defined meta tags in the method `getMetaTags()`.

The meta tag can be define in the following ways:

Expand Down
2 changes: 1 addition & 1 deletion src/InjectionContainer/InjectionContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\InjectionContainer;
namespace Yiisoft\Yii\View\Renderer\InjectionContainer;

use Psr\Container\ContainerInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/InjectionContainer/InjectionContainerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\InjectionContainer;
namespace Yiisoft\Yii\View\Renderer\InjectionContainer;

interface InjectionContainerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/InjectionContainer/StubInjectionContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\InjectionContainer;
namespace Yiisoft\Yii\View\Renderer\InjectionContainer;

use RuntimeException;

Expand Down
2 changes: 1 addition & 1 deletion src/LayoutParametersInjectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View;
namespace Yiisoft\Yii\View\Renderer;

/**
* LayoutParametersInjectionInterface is an interface that must be implemented by classes to inject layout parameters.
Expand Down
2 changes: 1 addition & 1 deletion src/LayoutSpecificInjections.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View;
namespace Yiisoft\Yii\View\Renderer;

final class LayoutSpecificInjections
{
Expand Down
2 changes: 1 addition & 1 deletion src/LinkTagsInjectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View;
namespace Yiisoft\Yii\View\Renderer;

/**
* LinkTagsInjectionInterface is an interface that must be implemented by classes to inject link tags.
Expand Down
2 changes: 1 addition & 1 deletion src/MetaTagsInjectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View;
namespace Yiisoft\Yii\View\Renderer;

/**
* MetaTagsInjectionInterface is an interface that must be implemented by classes to inject meta tags.
Expand Down
10 changes: 5 additions & 5 deletions src/ViewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View;
namespace Yiisoft\Yii\View\Renderer;

use LogicException;
use RuntimeException;
Expand All @@ -17,10 +17,10 @@
use Yiisoft\View\Exception\ViewNotFoundException;
use Yiisoft\View\ViewContextInterface;
use Yiisoft\View\WebView;
use Yiisoft\Yii\View\Exception\InvalidLinkTagException;
use Yiisoft\Yii\View\Exception\InvalidMetaTagException;
use Yiisoft\Yii\View\InjectionContainer\InjectionContainerInterface;
use Yiisoft\Yii\View\InjectionContainer\StubInjectionContainer;
use Yiisoft\Yii\View\Renderer\Exception\InvalidLinkTagException;
use Yiisoft\Yii\View\Renderer\Exception\InvalidMetaTagException;
use Yiisoft\Yii\View\Renderer\InjectionContainer\InjectionContainerInterface;
use Yiisoft\Yii\View\Renderer\InjectionContainer\StubInjectionContainer;

use function array_key_exists;
use function array_merge;
Expand Down Expand Up @@ -258,7 +258,7 @@
public function withAddedInjections(object|string ...$injections): self
{
$new = clone $this;
$new->setInjections(array_merge($this->injections, $injections));

Check warning on line 261 in src/ViewRenderer.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ public function withAddedInjections(object|string ...$injections) : self { $new = clone $this; - $new->setInjections(array_merge($this->injections, $injections)); + $new->setInjections($this->injections); return $new; } /**

Check warning on line 261 in src/ViewRenderer.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ public function withAddedInjections(object|string ...$injections) : self { $new = clone $this; - $new->setInjections(array_merge($this->injections, $injections)); + $new->setInjections($injections); return $new; } /**

Check warning on line 261 in src/ViewRenderer.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function withAddedInjections(object|string ...$injections) : self { $new = clone $this; - $new->setInjections(array_merge($this->injections, $injections)); + return $new; } /**
return $new;
}

Expand All @@ -281,7 +281,7 @@
*/
public function withLocale(string $locale): self
{
$new = clone $this;

Check warning on line 284 in src/ViewRenderer.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ */ public function withLocale(string $locale) : self { - $new = clone $this; + $new = $this; $new->locale = $locale; return $new; }
$new->locale = $locale;
return $new;
}
Expand Down Expand Up @@ -418,7 +418,7 @@
foreach ($this->getPreparedInjections() as $injection) {
if ($injection instanceof $injectionInterface) {
$result[] = $injection;
continue;

Check warning on line 421 in src/ViewRenderer.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ foreach ($this->getPreparedInjections() as $injection) { if ($injection instanceof $injectionInterface) { $result[] = $injection; - continue; + break; } if ($injection instanceof LayoutSpecificInjections && $injection->getLayout() === $layout) { foreach ($injection->getInjections() as $layoutInjection) {
}
if ($injection instanceof LayoutSpecificInjections && $injection->getLayout() === $layout) {
foreach ($injection->getInjections() as $layoutInjection) {
Expand Down Expand Up @@ -539,7 +539,7 @@
}

$regexp = '/((?<=controller\\\|controllers\\\)(?:[\w\\\]+)|(?:[a-z\d]+))controller$/iU';
if (!preg_match($regexp, $class, $m) || empty($m[1])) {

Check warning on line 542 in src/ViewRenderer.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.2-ubuntu-latest

Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return $cache[$class]; } $regexp = '/((?<=controller\\\\|controllers\\\\)(?:[\\w\\\\]+)|(?:[a-z\\d]+))controller$/iU'; - if (!preg_match($regexp, $class, $m) || empty($m[1])) { + if (!preg_match($regexp, $class, $m) || empty($m[0])) { throw new RuntimeException('Cannot detect controller name.'); } $inflector = new Inflector();
throw new RuntimeException('Cannot detect controller name.');
}

Expand Down
4 changes: 2 additions & 2 deletions tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Tests;
namespace Yiisoft\Yii\View\Renderer\Tests;

use PHPUnit\Framework\TestCase;
use Yiisoft\DataResponse\DataResponseFactoryInterface;
use Yiisoft\Di\Container;
use Yiisoft\Di\ContainerConfig;
use Yiisoft\Test\Support\EventDispatcher\SimpleEventDispatcher;
use Yiisoft\View\WebView;
use Yiisoft\Yii\View\ViewRenderer;
use Yiisoft\Yii\View\Renderer\ViewRenderer;

final class ConfigTest extends TestCase
{
Expand Down
10 changes: 5 additions & 5 deletions tests/CsrfViewInjectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Tests;
namespace Yiisoft\Yii\View\Renderer\Tests;

use Nyholm\Psr7\Factory\Psr17Factory;
use PHPUnit\Framework\TestCase;
use Yiisoft\Csrf\CsrfMiddleware;
use Yiisoft\Csrf\Synchronizer\Generator\RandomCsrfTokenGenerator;
use Yiisoft\Csrf\Synchronizer\SynchronizerCsrfToken;
use Yiisoft\Yii\View\Csrf;
use Yiisoft\Yii\View\CsrfViewInjection;
use Yiisoft\Yii\View\Tests\Support\FakeCsrfToken;
use Yiisoft\Yii\View\Tests\Support\MockCsrfTokenStorage;
use Yiisoft\Yii\View\Renderer\Csrf;
use Yiisoft\Yii\View\Renderer\CsrfViewInjection;
use Yiisoft\Yii\View\Renderer\Tests\Support\FakeCsrfToken;
use Yiisoft\Yii\View\Renderer\Tests\Support\MockCsrfTokenStorage;

final class CsrfViewInjectionTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Debug/WebViewCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Tests\Debug;
namespace Yiisoft\Yii\View\Renderer\Tests\Debug;

use Psr\EventDispatcher\EventDispatcherInterface;
use Yiisoft\View\Event\WebView\AfterRender;
use Yiisoft\View\WebView;
use Yiisoft\Yii\Debug\Collector\CollectorInterface;
use Yiisoft\Yii\Debug\Tests\Shared\AbstractCollectorTestCase;
use Yiisoft\Yii\View\Debug\WebViewCollector;
use Yiisoft\Yii\View\Renderer\Debug\WebViewCollector;

final class WebViewCollectorTest extends AbstractCollectorTestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Exception/InvalidLinkTagExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Tests\Exception;
namespace Yiisoft\Yii\View\Renderer\Tests\Exception;

use Yiisoft\Yii\View\Exception\InvalidLinkTagException;
use Yiisoft\Yii\View\Renderer\Exception\InvalidLinkTagException;
use PHPUnit\Framework\TestCase;
use Yiisoft\Yii\View\Tests\Support\TestTrait;
use Yiisoft\Yii\View\Renderer\Tests\Support\TestTrait;

final class InvalidLinkTagExceptionTest extends TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Exception/InvalidMetaTagExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Tests\Exception;
namespace Yiisoft\Yii\View\Renderer\Tests\Exception;

use Yiisoft\Yii\View\Exception\InvalidMetaTagException;
use Yiisoft\Yii\View\Renderer\Exception\InvalidMetaTagException;
use PHPUnit\Framework\TestCase;
use Yiisoft\Yii\View\Tests\Support\TestTrait;
use Yiisoft\Yii\View\Renderer\Tests\Support\TestTrait;

final class InvalidMetaTagExceptionTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/CharsetInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Tests\Support;
namespace Yiisoft\Yii\View\Renderer\Tests\Support;

use Yiisoft\Yii\View\MetaTagsInjectionInterface;
use Yiisoft\Yii\View\Renderer\MetaTagsInjectionInterface;

final class CharsetInjection implements MetaTagsInjectionInterface
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/CommonParametersInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Tests\Support;
namespace Yiisoft\Yii\View\Renderer\Tests\Support;

use Yiisoft\Yii\View\CommonParametersInjectionInterface;
use Yiisoft\Yii\View\Renderer\CommonParametersInjectionInterface;

final class CommonParametersInjection implements CommonParametersInjectionInterface
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/Controller/Sub8Namespace/FakeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yiisoft\Yii\View\Tests\Support\Controller\Sub8Namespace;
namespace Yiisoft\Yii\View\Renderer\Tests\Support\Controller\Sub8Namespace;

final class FakeController
{
Expand Down
Loading
Loading