Skip to content

Commit

Permalink
Merge pull request #18 from daniellienert/task/update-neos-5
Browse files Browse the repository at this point in the history
FEATURE: Neos 5 compatibility
  • Loading branch information
bwaidelich authored Nov 13, 2019
2 parents 15ec6ab + 4e2b234 commit ae42194
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Classes/FusionFormRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Neos\Flow\Annotations as Flow;
use Neos\Flow\Mvc\Controller\ControllerContext;
use Neos\Flow\Package\PackageManagerInterface;
use Neos\Flow\Package\PackageManager;
use Neos\Form\Core\Model\Renderable\RootRenderableInterface;
use Neos\Form\Core\Renderer\RendererInterface;
use Neos\Form\Core\Runtime\FormRuntime;
Expand Down Expand Up @@ -36,7 +36,7 @@ class FusionFormRenderer implements RendererInterface

/**
* @Flow\Inject
* @var PackageManagerInterface
* @var PackageManager
*/
protected $packageManager;

Expand Down Expand Up @@ -64,6 +64,9 @@ public function getFormRuntime(): FormRuntime
* @param RootRenderableInterface $formRuntime
* @return string
* @throws FusionException
* @throws \Neos\Flow\Mvc\Exception
* @throws \Neos\Flow\Package\Exception\UnknownPackageException
* @throws \Neos\Flow\Security\Exception
*/
public function renderRenderable(RootRenderableInterface $formRuntime): string
{
Expand Down Expand Up @@ -97,4 +100,4 @@ public function renderRenderable(RootRenderableInterface $formRuntime): string
$fusionView->assign('formRuntime', $formRuntime);
return $fusionView->render();
}
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Flow Form Framework preset for Fusion based Form rendering",
"license": "MIT",
"require": {
"neos/form": "^4.1"
"neos/form": "^5.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit ae42194

Please sign in to comment.