Skip to content

Commit

Permalink
Fixed ClassNotFoundException when there is no valid SiteAccess available
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszbieniek committed Dec 5, 2019
1 parent e3f8a45 commit 8311156
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bundle/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use EzSystems\EzPlatformPageBuilderBundle\DependencyInjection\EzPlatformPageBuilderExtension;
use EzSystems\RepositoryForms\Content\View\ContentCreateView;
use EzSystems\RepositoryForms\Content\View\ContentEditView;
use http\Exception\RuntimeException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use EzSystems\EzPlatformPageBuilder\PageBuilder;
Expand Down Expand Up @@ -118,7 +117,7 @@ public function editAction(Request $request, ContentEditView $view): ContentEdit
}

if (!$currentSiteaccess) {
throw new RuntimeException('No siteaccess available for this Page');
throw new \RuntimeException('No siteaccess available for this Page');
}

$this->session->set(EzPlatformPageBuilderExtension::SESSION_KEY_SITEACCESS, $currentSiteaccess);
Expand Down

0 comments on commit 8311156

Please sign in to comment.