- Breadcrumb now shows up only if deep within at least two routes (if ignoreSoleRoute is true)

This commit is contained in:
Dave Mc Nicoll committed 2024-10-14 12:52:34 +00:00
1 parent 34a3351ed5
commit 81fa3d49c7
3 files changed
+20 -12

No files matched your search

+11 -11
View File
@@ -25,8 +25,8 @@ class ObjectReflection {
$this->cache = $cache;
#if ( ! $this->cache || ! $this->cache->has($class) ) {
$this->classReflection = $class instanceof ReflectionClass ? $class : new ReflectionClass($class);
# }
$this->classReflection = $class instanceof ReflectionClass ? $class : new ReflectionClass($class);
# }
}
public static function fromClass(ReflectionClass|string $class, ? CacheInterface $cache = null) : self
@@ -53,11 +53,11 @@ class ObjectReflection {
traits: array_map(fn($trait) => static::fromClass($trait)->reflectClass(), array_keys($this->classReflection->getTraits())),
);
}
public function reflectProperties(int $filter =
ReflectionProperty::IS_PUBLIC |
ReflectionProperty::IS_PROTECTED |
ReflectionProperty::IS_PRIVATE
ReflectionProperty::IS_PUBLIC |
ReflectionProperty::IS_PROTECTED |
ReflectionProperty::IS_PRIVATE
) : array
{
$defaultValues = $this->classReflection->getDefaultProperties();
@@ -87,11 +87,11 @@ class ObjectReflection {
}
public function reflectMethods(int $filter =
ReflectionMethod::IS_PUBLIC |
ReflectionMethod::IS_PROTECTED |
ReflectionMethod::IS_PRIVATE |
ReflectionMethod::IS_STATIC |
ReflectionMethod::IS_FINAL
ReflectionMethod::IS_PUBLIC |
ReflectionMethod::IS_PROTECTED |
ReflectionMethod::IS_PRIVATE |
ReflectionMethod::IS_STATIC |
ReflectionMethod::IS_FINAL
) : array
{
$list = [];