mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Disabled pretty debug info for Flex as it slows down Twig rendering
This commit is contained in:
parent
432f0eb9e5
commit
6ed453890d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user