+
Skip to content
Merged
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
7 changes: 3 additions & 4 deletions src/bundle/Core/Cache/Warmer/ProxyCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

final class ProxyCacheWarmer implements CacheWarmerInterface
{
public const PROXY_CLASSES = [
public const array PROXY_CLASSES = [
Content::class,
ContentInfo::class,
ContentType::class,
Expand All @@ -34,8 +34,7 @@ final class ProxyCacheWarmer implements CacheWarmerInterface
Thumbnail::class,
];

/** @var \Ibexa\Core\Repository\ProxyFactory\ProxyGeneratorInterface */
private $proxyGenerator;
private ProxyGeneratorInterface $proxyGenerator;

public function __construct(ProxyGeneratorInterface $proxyGenerator)
{
Expand All @@ -47,7 +46,7 @@ public function isOptional(): bool
return false;
}

public function warmUp($cacheDir, ?string $buildDir = null): array
public function warmUp(string $cacheDir, ?string $buildDir = null): array
{
$this->proxyGenerator->warmUp(self::PROXY_CLASSES);

Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载