class PageEditFile implements PageEditFileInterface

Services related to PageEdit File

Properties

private AuthorizationCheckerInterface $authChecker Stores AuthorizationCheckerInterface
private ContainerInterface $configService Stores ContainerInterface
private ConfigServiceInterface $container Stores ConfigServiceInterface
private Pdf $knpSnappyPdf Stores Pdf
private PageEditFormFactoryInterface $pageEditFormFactory Stores PageEditFormFactoryInterface
private Request $request Stores current Request
private Environment $environment Stores Environment

Methods

__construct(AuthorizationCheckerInterface $authChecker, ConfigServiceInterface $configService, ContainerInterface $container, Pdf $knpSnappyPdf, PageEditFormFactoryInterface $pageEditFormFactory, RequestStack $requestStack, Environment $environment)

No description

archive(string $page, object $user)

Archives file

createFolders()

Creates the folders needed by PageEditBundle

delete(string $page, bool $archive)

Moves the page to the deleted folder

string
getImagesFolder()

Returns the images folder

Finder
getPages()

Gets all available pages

string
getPagesFolder()

Returns the pages folder

string
getPath(string $page)

Returns file path

array
getSkeletonStartEnd()

Gets the start and end of the skeleton

redirect(string $page, string $slug)

Creates the redirection file

write(string $slug, Form $form, object $user)

Writes file (+ archive old file)

Details

at line 75
__construct(AuthorizationCheckerInterface $authChecker, ConfigServiceInterface $configService, ContainerInterface $container, Pdf $knpSnappyPdf, PageEditFormFactoryInterface $pageEditFormFactory, RequestStack $requestStack, Environment $environment)

Parameters

AuthorizationCheckerInterface $authChecker
ConfigServiceInterface $configService
ContainerInterface $container
Pdf $knpSnappyPdf
PageEditFormFactoryInterface $pageEditFormFactory
RequestStack $requestStack
Environment $environment

at line 97
archive(string $page, object $user)

Archives file

Parameters

string $page
object $user

at line 118
createFolders()

Creates the folders needed by PageEditBundle

at line 139
delete(string $page, bool $archive)

Moves the page to the deleted folder

Parameters

string $page
bool $archive

at line 167
string getImagesFolder()

Returns the images folder

Return Value

string

at line 191
Finder getPages()

Gets all available pages

Return Value

Finder

at line 230
string getPagesFolder()

Returns the pages folder

Return Value

string

at line 254
string getPath(string $page)

Returns file path

Parameters

string $page

Return Value

string

at line 280
array getSkeletonStartEnd()

Gets the start and end of the skeleton

Return Value

array

at line 299
redirect(string $page, string $slug)

Creates the redirection file

Parameters

string $page
string $slug

at line 312
write(string $slug, Form $form, object $user)

Writes file (+ archive old file)

Parameters

string $slug
Form $form
object $user