Skip to content

Commit ae84fa3

Browse files
author
Bernhard Schmitt
committed
Make abstract PresentationObject factories ProtectedContextAware
1 parent f65bf1b commit ae84fa3

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Classes/Fusion/AbstractComponentPresentationObjectFactory.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Neos\ContentRepository\Domain\NodeType\NodeTypeConstraintFactory;
1010
use Neos\ContentRepository\Domain\Projection\Content\TraversableNodeInterface;
1111
use Neos\ContentRepository\Domain\Projection\Content\TraversableNodes;
12+
use Neos\Eel\ProtectedContextAwareInterface;
1213
use Neos\Flow\Annotations as Flow;
1314
use Neos\Flow\I18n\Translator;
1415
use Neos\Neos\Service\ContentElementEditableService;
@@ -17,7 +18,7 @@
1718
/**
1819
* The generic abstract component presentation object factory implementation
1920
*/
20-
abstract class AbstractComponentPresentationObjectFactory implements ComponentPresentationObjectFactoryInterface
21+
abstract class AbstractComponentPresentationObjectFactory implements ComponentPresentationObjectFactoryInterface, ProtectedContextAwareInterface
2122
{
2223
/**
2324
* @Flow\Inject
@@ -56,4 +57,14 @@ final protected function findChildNodesByNodeTypeFilterString(TraversableNodeInt
5657
{
5758
return $parentNode->findChildNodes($this->nodeTypeConstraintFactory->parseFilterString($nodeTypeFilterString));
5859
}
60+
61+
/**
62+
* All methods are considered safe
63+
* @param string $methodName
64+
* @return boolean
65+
*/
66+
public function allowsCallOfMethod($methodName): bool
67+
{
68+
return true;
69+
}
5970
}

0 commit comments

Comments
 (0)