Skip to content

Commit

Permalink
Merge pull request #45 from daniellienert/bugfix/adapt-to-middleware
Browse files Browse the repository at this point in the history
BUGFIX: Adapt to middleware refactoring in Neos 7
  • Loading branch information
mficzel authored Dec 16, 2020
2 parents 3456a18 + b0fe216 commit 83ccb04
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 83ccb04

Please sign in to comment.