PHP Class Neos\Neos\Service\BackendRedirectionService

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Method Details

createContext() protected méthode

Create a ContentContext to be used for the backend redirects.
protected createContext ( string $workspaceName ) : ContentContext
$workspaceName string
Résultat Neos\Neos\Domain\Service\ContentContext

createWorkspaceAndRootNodeIfNecessary() protected méthode

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
Résultat void

getAfterLoginRedirectionUri() public méthode

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
Résultat string

getAfterLogoutRedirectionUri() public méthode

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
Résultat string A possible redirection URI, if any

getLastVisitedNode() protected méthode

protected getLastVisitedNode ( string $workspaceName ) : Neos\ContentRepository\Domain\Model\NodeInterface
$workspaceName string
Résultat Neos\ContentRepository\Domain\Model\NodeInterface

Property Details

$contextFactory protected_oe property

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
Résultat Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$domainRepository protected_oe property

protected DomainRepository,Neos\Neos\Domain\Repository $domainRepository
Résultat Neos\Neos\Domain\Repository\DomainRepository

$nodeDataRepository protected_oe property

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
Résultat Neos\ContentRepository\Domain\Repository\NodeDataRepository

$persistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Résultat Neos\Flow\Persistence\PersistenceManagerInterface

$propertyMapper protected_oe property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
Résultat Neos\Flow\Property\PropertyMapper

$session protected_oe property

protected SessionInterface,Neos\Flow\Session $session
Résultat Neos\Flow\Session\SessionInterface

$siteRepository protected_oe property

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Résultat Neos\Neos\Domain\Repository\SiteRepository

$userService protected_oe property

protected UserService,Neos\Neos\Service $userService
Résultat UserService

$workspaceRepository protected_oe property

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
Résultat Neos\ContentRepository\Domain\Repository\WorkspaceRepository