PHP Класс Bolt\Controller\Backend\Extend

Наследование: extends BackendBase
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$readWriteMode

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

Метод Описание
before ( Request $request, Silex\Application $app, string $roleRoute = null ) : null | RedirectResponse Middleware function to check whether a user is logged on.
boot ( Silex\Application $app )
check ( ) : Symfony\Component\HttpFoundation\JsonResponse Check a package.
dependsPackage ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Find "depends" package dependencies.
dumpAutoload ( ) : Response Dumps the autoloader.
generateTheme ( Request $request ) : Response Generate a copy of a theme package.
install ( Request $request ) : Response Install a package.
installAll ( ) : Response Install all packages that are in the composer.json but not in vendor.
installInfo ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
installPackage ( ) : TemplateResponse Package install chooser modal.
installed ( ) : Symfony\Component\HttpFoundation\JsonResponse Get a list of all installed packages.
overview ( ) : TemplateResponse The main 'Extend' page.
packageInfo ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Show installed packages.
prohibitsPackage ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Find "prohibits" dependencies.
uninstall ( Request $request ) : Response Uninstall a package.
update ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Update a package(s).

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

Метод Описание
addRoutes ( Silex\ControllerCollection $c ) Returns routes to connect to the application.
manager ( ) : PackageManager

Приватные методы

Метод Описание
getJsonException ( Exception $e ) : Symfony\Component\HttpFoundation\JsonResponse Return an exception formatted as JSON.
getRenderContext ( ) : array Get render parameters for Twig.

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

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

Returns routes to connect to the application.
protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection

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

Middleware function to check whether a user is logged on.
public before ( Request $request, Silex\Application $app, string $roleRoute = null ) : null | RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$app Silex\Application
$roleRoute string
Результат null | Symfony\Component\HttpFoundation\RedirectResponse

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

public boot ( Silex\Application $app )
$app Silex\Application

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

Check a package.
public check ( ) : Symfony\Component\HttpFoundation\JsonResponse
Результат Symfony\Component\HttpFoundation\JsonResponse

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

Find "depends" package dependencies.
public dependsPackage ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

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

Dumps the autoloader.
public dumpAutoload ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

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

Generate a copy of a theme package.
public generateTheme ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

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

Equivalent to composer require author/package
public install ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

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

Equivalent to composer install
public installAll ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

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

public installInfo ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

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

Package install chooser modal.
public installPackage ( ) : TemplateResponse
Результат Bolt\Response\TemplateResponse

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

Partially equivalent to composer show -i
public installed ( ) : Symfony\Component\HttpFoundation\JsonResponse
Результат Symfony\Component\HttpFoundation\JsonResponse

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

protected manager ( ) : PackageManager
Результат Bolt\Composer\PackageManager

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

The main 'Extend' page.
public overview ( ) : TemplateResponse
Результат Bolt\Response\TemplateResponse

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

Show installed packages.
public packageInfo ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

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

Find "prohibits" dependencies.
public prohibitsPackage ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

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

Uninstall a package.
public uninstall ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response

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

Update a package(s).
public update ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

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

$readWriteMode публичное свойство

public $readWriteMode