for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\ViewInjection;
use Yiisoft\Aliases\Aliases;
use Yiisoft\Assets\AssetManager;
use Yiisoft\I18n\Locale;
use Yiisoft\Router\CurrentRoute;
use Yiisoft\Yii\View\LayoutParametersInjectionInterface;
final class LayoutViewInjection implements LayoutParametersInjectionInterface
{
public function __construct(
private Aliases $aliases,
private AssetManager $assetManager,
private Locale $locale,
private CurrentRoute $currentRoute,
) {
}
public function getLayoutParameters(): array
return [
'aliases' => $this->aliases,
'assetManager' => $this->assetManager,
'locale' => $this->locale,
'currentRoute' => $this->currentRoute,
];