Метод | Описание | |
---|---|---|
__construct ( FOS\RestBundle\View\ViewHandler $viewHandler, |
||
cgetAction ( |
Returns list of snippets. | |
deleteAction ( |
Deletes an existing Snippet. | |
getAction ( |
Returns snippet by ID. | |
getFieldsAction ( ) : Symfony\Component\HttpFoundation\JsonResponse | TODO refactor. | |
getLocale ( |
||
getSecurityContext ( ) | ||
postAction ( |
Saves a new snippet. | |
postTriggerAction ( string $uuid, |
trigger a action for given snippet specified over get-action parameter. | |
putAction ( |
Saves a new existing snippet. |
Метод | Описание | |
---|---|---|
decorateSnippet ( array $snippet, $locale ) | Decorate snippet for HATEOAS. | |
findDocument ( $uuid, $locale ) | ||
getReferentialIntegrityResponse ( string $webspace, PHPCR\NodeInterface[] $references, string $uuid, $locale ) : |
Return a response for the case where there is an referential integrity violation. | |
getUser ( ) | Returns user. | |
handleView ( $document ) | ||
processForm ( |
public __construct ( FOS\RestBundle\View\ViewHandler $viewHandler, |
||
$viewHandler | FOS\RestBundle\View\ViewHandler | |
$contentMapper | ||
$structureManager | Sulu\Component\Content\Compat\StructureManagerInterface | |
$snippetRepository | ||
$tokenStorage | Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface | |
$urlGenerator | Symfony\Component\Routing\Generator\UrlGeneratorInterface | |
$defaultSnippetManager | Sulu\Bundle\SnippetBundle\Snippet\DefaultSnippetManagerInterface | |
$documentManager | Sulu\Component\DocumentManager\DocumentManager | |
$formFactory | ||
$requestHashChecker | ||
$listRestHelper |
public cgetAction ( |
||
$request | ||
Результат |
public deleteAction ( |
||
$request | ||
$uuid | string | |
Результат | Symfony\Component\HttpFoundation\JsonResponse |
public getFieldsAction ( ) : Symfony\Component\HttpFoundation\JsonResponse | ||
Результат | Symfony\Component\HttpFoundation\JsonResponse |
public getLocale ( |
||
$request |
public postAction ( |
||
$request | ||
Результат |
public postTriggerAction ( string $uuid, |
||
$uuid | string | |
$request | ||
Результат |