/** * Displays the backend interface * * @param NodeInterface $node The node that will be displayed on the first tab * @return void */ public function indexAction(NodeInterface $node = null) { $this->contentCache->flush(); $this->session->start(); $this->session->putData('__cheEnabled__', true); if ($user = $this->userService->getBackendUser()) { $workspaceName = $this->userService->getPersonalWorkspaceName(); $contentContext = $this->createContext($workspaceName); $contentContext->getWorkspace(); $this->persistenceManager->persistAll(); $siteNode = $contentContext->getCurrentSiteNode(); if ($node === null) { $node = $siteNode; } $this->view->assign('user', $user); $this->view->assign('documentNode', $node); $this->view->assign('site', $node); $this->view->assign('translations', $this->xliffService->getCachedJson(new Locale($this->userService->getInterfaceLanguage()))); return; } $this->redirectToUri($this->uriBuilder->uriFor('index', array(), 'Login', 'TYPO3.Neos')); }
public function setUp() { parent::setUp(); $this->contentCache = $this->objectManager->get('TYPO3\\TypoScript\\Core\\Cache\\ContentCache'); $this->contentCache->flush(); }
/** * @Flow\Before("method(TYPO3\Neos\Controller\Backend\BackendController->indexAction())") * @param JoinPointInterface $joinPoint the join point * @return mixed */ public function disableNewUserInterface(JoinPointInterface $joinPoint) { $this->contentCache->flush(); $this->session->start(); $this->session->putData('__cheEnabled__', false); }
public function setUp() { parent::setUp(); $this->contentCache = $this->objectManager->get(ContentCache::class); $this->contentCache->flush(); }