Skip to content

Commit

Permalink
Merge pull request #89 from neos/bugfix/adjustToApiChangeInNeos90
Browse files Browse the repository at this point in the history
Bugfix: Adjust to api changes in Neos 9.0
  • Loading branch information
mhsdesign committed Sep 10, 2023
2 parents 224a26a + 642f728 commit b53fbb1
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion Classes/Domain/AbstractFormObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

abstract class AbstractFormObject implements ProtectedContextAwareInterface
{

/**
* @var PersistenceManagerInterface
* @Flow\Inject
Expand Down
1 change: 0 additions & 1 deletion Classes/Domain/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
class Field extends AbstractFormObject
{

/**
* @var Form|null
*/
Expand Down
1 change: 0 additions & 1 deletion Classes/Domain/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*/
class Option extends AbstractFormObject
{

/**
* @var mixed
*/
Expand Down
1 change: 0 additions & 1 deletion Classes/FusionObjects/FieldDefinitionImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

class FieldDefinitionImplementation extends AbstractFusionObject
{

/**
* @return Form|null
*/
Expand Down
1 change: 0 additions & 1 deletion Classes/FusionObjects/FormDefinitionImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

class FormDefinitionImplementation extends AbstractFusionObject
{

/**
* @return ActionRequest|null
*/
Expand Down
1 change: 0 additions & 1 deletion Classes/Runtime/Action/EmailAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

class EmailAction extends AbstractAction
{

/**
* @return ActionResponse|null
* @throws ActionException
Expand Down
1 change: 0 additions & 1 deletion Classes/Runtime/Domain/ActionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

class ActionResolver
{

/**
* @Flow\Inject
* @var ObjectManagerInterface
Expand Down
1 change: 0 additions & 1 deletion Classes/Runtime/FusionObjects/ActionImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

class ActionImplementation extends AbstractFusionObject implements ActionInterface
{

/**
* @var ActionResolver
* @Flow\Inject
Expand Down
11 changes: 9 additions & 2 deletions Classes/Runtime/FusionObjects/RuntimeFormImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

class RuntimeFormImplementation extends AbstractFusionObject
{

/**
* @var FormRequestFactory
* @Flow\Inject
Expand Down Expand Up @@ -100,7 +99,15 @@ public function evaluate(): string
$process = $this->getProcess();

$formRequest = $this->formRequestFactory->createFormRequest($this->getCurrentActionRequest(), $namespace);
$this->runtime->pushContext('request', $formRequest);
$context = $this->runtime->getCurrentContext();
/**
* The internal method "pushContextArray" allows some creative use,
* as that we can override the "request" context.
* This is not permitted via public / official api and probably an unwise idea to do.
* {@see \Neos\Fusion\Core\FusionGlobals}
*/
$context['request'] = $formRequest;
$this->runtime->pushContextArray($context);
$process->handle($formRequest, $data);
if ($process->isFinished() === false) {
$result = $this->renderForm($process, $formRequest, $this->getAttributes());
Expand Down
1 change: 0 additions & 1 deletion Classes/Runtime/Helper/SchemaDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

class SchemaDefinition implements ProtectedContextAwareInterface, SchemaInterface
{

/**
* @var PropertyMapper
* @Flow\Inject
Expand Down

0 comments on commit b53fbb1

Please sign in to comment.