Disabled pretty debug info for Flex as it slows down Twig rendering

This commit is contained in:
Matias Griese 2021-12-09 15:45:25 +02:00
parent 432f0eb9e5
commit 6ed453890d
6 changed files with 21 additions and 10 deletions

View File

@ -14,6 +14,7 @@
* Fixed bad key lookup in `FlexRelatedDirectoryTrait::getCollectionByProperty()`
* Fixed RequestHandlers `NotFoundException` having empty request
* Block `.json` files in web server configs
* Disabled pretty debug info for Flex as it slows down Twig rendering
# v1.7.25
## 11/16/2021

View File

@ -641,9 +641,10 @@ class PageObject extends FlexPageObject
return $this->root ?: parent::exists();
}
/**
// TODO: Disabled because this slows down exception handling on missing Twig template files
/* *
* @return array
*/
* /
public function __debugInfo(): array
{
$list = parent::__debugInfo();
@ -653,6 +654,7 @@ class PageObject extends FlexPageObject
'_content:private' => $this->getRawContent()
];
}
*/
/**
* @param array $elements

View File

@ -550,9 +550,10 @@ class FlexCollection extends ObjectCollection implements FlexCollectionInterface
return $elements;
}
/**
// TODO: Disabled because this slows down exception handling on missing Twig template files
/* *
* @return array
*/
* /
#[\ReturnTypeWillChange]
public function __debugInfo()
{
@ -563,6 +564,7 @@ class FlexCollection extends ObjectCollection implements FlexCollectionInterface
'objects:private' => $this->getElements()
];
}
*/
/**
* Creates a new instance from the specified elements.

View File

@ -529,9 +529,10 @@ class FlexIndex extends ObjectIndex implements FlexIndexInterface
$this->setEntries($data['entries']);
}
/**
// TODO: Disabled because this slows down exception handling on missing Twig template files
/* *
* @return array
*/
* /
#[\ReturnTypeWillChange]
public function __debugInfo()
{
@ -542,6 +543,7 @@ class FlexIndex extends ObjectIndex implements FlexIndexInterface
'entries:private' => $this->getEntries()
];
}
*/
/**
* @param array $entries

View File

@ -958,9 +958,10 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
return $this->getFlexKey();
}
/**
// TODO: Disabled because this slows down exception handling on missing Twig template files
/* *
* @return array
*/
* /
#[\ReturnTypeWillChange]
public function __debugInfo()
{
@ -973,6 +974,7 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
'storage:private' => $this->getMetaData()
];
}
*/
/**
* Clone object.

View File

@ -286,9 +286,10 @@ trait FlexMediaTrait
$this->clearMediaCache();
}
/**
// TODO: Disabled because this slows down exception handling on missing Twig template files
/* *
* @return array
*/
* /
#[\ReturnTypeWillChange]
public function __debugInfo()
{
@ -296,6 +297,7 @@ trait FlexMediaTrait
'uploads:private' => $this->getUpdatedMedia()
];
}
*/
/**
* @param array $files