Skip to content

Commit

Permalink
BUGFIX: Adapt to middleware refactoring in Neos 7
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Dec 16, 2020
1 parent 3456a18 commit b0fe216
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Classes/ResourceManagement/ProxyAwareTargetTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
namespace Sitegeist\MagicWand\ResourceManagement;

use Neos\Flow\Annotations as Flow;
use Neos\Flow\Core\Bootstrap;
use Neos\Flow\Http\Exception as HttpException;
use Neos\Flow\Http\HttpRequestHandlerInterface;
use Neos\Flow\Mvc\ActionRequest;
use Neos\Flow\Mvc\Routing\Exception\MissingActionNameException;
use Neos\Flow\Mvc\Routing\UriBuilder;
use Neos\Flow\ResourceManagement\CollectionInterface;
use Neos\Flow\ResourceManagement\PersistentResource;
use Neos\Flow\ResourceManagement\ResourceManager;
use Neos\Flow\ResourceManagement\Storage\StorageObject;
use Neos\Flow\ResourceManagement\Target\Exception;
use Sitegeist\MagicWand\Domain\Service\ConfigurationService;

trait ProxyAwareTargetTrait
{
Expand All @@ -23,7 +19,7 @@ public function initializeObject()
// initialize uriBuilder with request
$requestHandler = $this->bootstrap->getActiveRequestHandler();
if ($requestHandler instanceof HttpRequestHandlerInterface) {
$request = ActionRequest::fromHttpRequest($requestHandler->getComponentContext()->getHttpRequest());
$request = ActionRequest::fromHttpRequest($requestHandler->getHttpRequest());
$this->uriBuilder->setRequest($request);
}
parent::initializeObject();
Expand Down

0 comments on commit b0fe216

Please sign in to comment.