Skip to content

Commit

Permalink
TASK: Remove Views.yaml in favour of $defaultViewObjectName
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Feb 2, 2024
1 parent d36a006 commit ba8cf91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
10 changes: 3 additions & 7 deletions Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use Neos\Neos\Domain\Service\WorkspaceNameBuilder;
use Neos\Neos\FrontendRouting\NodeAddressFactory;
use Neos\Neos\FrontendRouting\SiteDetection\SiteDetectionResult;
use Neos\Neos\Service\BackendRedirectionService;
use Neos\Neos\Service\UserService;
use Neos\Neos\Ui\Domain\InitialData\ConfigurationProviderInterface;
use Neos\Neos\Ui\Domain\InitialData\FrontendConfigurationProviderInterface;
Expand All @@ -42,6 +41,8 @@ class BackendController extends ActionController
*/
protected $view;

protected $defaultViewObjectName = ApplicationView::class;

/**
* @Flow\Inject
* @var UserService
Expand Down Expand Up @@ -72,12 +73,6 @@ class BackendController extends ActionController
*/
protected $session;

/**
* @Flow\Inject(lazy=false)
* @var BackendRedirectionService
*/
protected $backendRedirectionService;

/**
* @Flow\Inject
* @var ContentRepositoryRegistry
Expand Down Expand Up @@ -187,6 +182,7 @@ public function indexAction(string $node = null)
$node = $subgraph->findNodeById($nodeAddress->nodeAggregateId);
}

$this->view->setOption('title', 'Neos CMS');
$this->view->assign('initialData', [
'configuration' =>
$this->configurationProvider->getConfiguration(
Expand Down
6 changes: 0 additions & 6 deletions Configuration/Views.yaml

This file was deleted.

0 comments on commit ba8cf91

Please sign in to comment.