Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Meta;
|
||||
@@ -7,7 +8,8 @@ final class Keywords
|
||||
{
|
||||
private function __construct(
|
||||
public array $keywords,
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public static function fromStrings(string ...$keywords): self
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Meta;
|
||||
@@ -8,6 +9,7 @@ final readonly class MetaData
|
||||
public function __construct(
|
||||
public string $title,
|
||||
public string $description = '',
|
||||
public OpenGraph $openGraph = new OpenGraphTypeWebsite,
|
||||
) {}
|
||||
public OpenGraph $openGraph = new OpenGraphTypeWebsite(),
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Meta;
|
||||
|
||||
interface MetaResolver
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Meta;
|
||||
|
||||
interface OpenGraph
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Meta;
|
||||
|
||||
enum OpenGraphType:string
|
||||
enum OpenGraphType: string
|
||||
{
|
||||
case WEBSITE = 'website';
|
||||
case ARTICLE = 'article';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Meta;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Meta;
|
||||
@@ -9,7 +10,8 @@ final class StaticPageMetaResolver implements MetaResolver
|
||||
public string $title,
|
||||
public string $description,
|
||||
#public Keywords $keywords,
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function __invoke(): MetaData
|
||||
{
|
||||
@@ -17,7 +19,7 @@ final class StaticPageMetaResolver implements MetaResolver
|
||||
$this->title,
|
||||
$this->description,
|
||||
#$this->keywords,
|
||||
new OpenGraphTypeWebsite
|
||||
new OpenGraphTypeWebsite()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user