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,7 +1,10 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Core;
|
||||
|
||||
use App\Framework\Core\ValueObjects\ClassName;
|
||||
use RecursiveDirectoryIterator;
|
||||
use RecursiveIteratorIterator;
|
||||
use ReflectionClass;
|
||||
@@ -23,14 +26,14 @@ class InterfaceImplementationLocator
|
||||
$rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory));
|
||||
|
||||
foreach ($rii as $file) {
|
||||
if (!$file->isFile() || $file->getExtension() !== 'php') {
|
||||
if (! $file->isFile() || $file->getExtension() !== 'php') {
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
$className = $this->getClassNameFromFile($file->getPathname());
|
||||
|
||||
if (!$className || !class_exists($className)) {
|
||||
if (! $className || ! ClassName::create($className)->exists()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -38,8 +41,8 @@ class InterfaceImplementationLocator
|
||||
|
||||
// Überprüfen, ob die Klasse das gewünschte Interface implementiert
|
||||
if ($refClass->implementsInterface($interfaceName) &&
|
||||
!$refClass->isAbstract() &&
|
||||
!$refClass->isInterface()) {
|
||||
! $refClass->isAbstract() &&
|
||||
! $refClass->isInterface()) {
|
||||
|
||||
if ($instantiate) {
|
||||
// Prüfen, ob der Konstruktor Parameter hat
|
||||
|
||||
Reference in New Issue
Block a user