PHP Класс Neos\Neos\Service\BackendRedirectionService

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$domainRepository Neos\Neos\Domain\Repository\DomainRepository
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$propertyMapper Neos\Flow\Property\PropertyMapper
$session Neos\Flow\Session\SessionInterface
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$userService UserService
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

Открытые методы

Метод Описание
getAfterLoginRedirectionUri ( ActionRequest $actionRequest ) : string Returns a specific URI string to redirect to after the login; or NULL if there is none.
getAfterLogoutRedirectionUri ( ActionRequest $actionRequest ) : string Returns a specific URI string to redirect to after the logout; or NULL if there is none.

Защищенные методы

Метод Описание
createContext ( string $workspaceName ) : ContentContext Create a ContentContext to be used for the backend redirects.
createWorkspaceAndRootNodeIfNecessary ( string $workspaceName ) : void If the specified workspace or its root node does not exist yet, the workspace and root node will be created.
getLastVisitedNode ( string $workspaceName ) : Neos\ContentRepository\Domain\Model\NodeInterface

Описание методов

createContext() защищенный Метод

Create a ContentContext to be used for the backend redirects.
protected createContext ( string $workspaceName ) : ContentContext
$workspaceName string
Результат Neos\Neos\Domain\Service\ContentContext

createWorkspaceAndRootNodeIfNecessary() защищенный Метод

This method is basically a safeguard for legacy and potentially broken websites where users might not have their own workspace yet. In a normal setup, the Domain User Service is responsible for creating and deleting user workspaces.
protected createWorkspaceAndRootNodeIfNecessary ( string $workspaceName ) : void
$workspaceName string Name of the workspace
Результат void

getAfterLoginRedirectionUri() публичный Метод

Returns a specific URI string to redirect to after the login; or NULL if there is none.
public getAfterLoginRedirectionUri ( ActionRequest $actionRequest ) : string
$actionRequest Neos\Flow\Mvc\ActionRequest
Результат string

getAfterLogoutRedirectionUri() публичный Метод

In case of NULL, it's the responsibility of the AuthenticationController where to redirect, most likely to the LoginController's index action.
public getAfterLogoutRedirectionUri ( ActionRequest $actionRequest ) : string
$actionRequest Neos\Flow\Mvc\ActionRequest
Результат string A possible redirection URI, if any

getLastVisitedNode() защищенный Метод

protected getLastVisitedNode ( string $workspaceName ) : Neos\ContentRepository\Domain\Model\NodeInterface
$workspaceName string
Результат Neos\ContentRepository\Domain\Model\NodeInterface

Описание свойств

$contextFactory защищенное свойство

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
Результат Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$domainRepository защищенное свойство

protected DomainRepository,Neos\Neos\Domain\Repository $domainRepository
Результат Neos\Neos\Domain\Repository\DomainRepository

$nodeDataRepository защищенное свойство

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
Результат Neos\ContentRepository\Domain\Repository\NodeDataRepository

$persistenceManager защищенное свойство

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface

$propertyMapper защищенное свойство

protected PropertyMapper,Neos\Flow\Property $propertyMapper
Результат Neos\Flow\Property\PropertyMapper

$session защищенное свойство

protected SessionInterface,Neos\Flow\Session $session
Результат Neos\Flow\Session\SessionInterface

$siteRepository защищенное свойство

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Результат Neos\Neos\Domain\Repository\SiteRepository

$userService защищенное свойство

protected UserService,Neos\Neos\Service $userService
Результат UserService

$workspaceRepository защищенное свойство

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
Результат Neos\ContentRepository\Domain\Repository\WorkspaceRepository