PluginController extends AbstractController
Table of Contents
| $pluginService | PluginService | |
|---|---|---|
| $BaseInfo | BaseInfo | |
| $pluginRepository | PluginRepository | |
| $pluginApiService | PluginApiService | |
| $composerService | ComposerServiceInterface | |
| $systemService | SystemService | |
| $eccubeConfig | EccubeConfig | |
| $entityManager | EntityManagerInterface | |
| $translator | TranslatorInterface | |
| $formFactory | FormFactoryInterface | |
| $eventDispatcher | EventDispatcherInterface | |
| $session | Session | |
| __construct() | PluginController constructor. | mixed |
| index() | インストール済プラグイン画面 | array |
| update() | インストール済プラグインからのアップデート | RedirectResponse |
| enable() | 対象のプラグインを有効にします。 | RedirectResponse|JsonResponse |
| disable() | 対象のプラグインを無効にします。 | JsonResponse|RedirectResponse |
| uninstall() | 対象のプラグインを削除します。 | RedirectResponse |
| install() | プラグインファイルアップロード画面 | array|RedirectResponse |
| authenticationSetting() | 認証キー設定画面 | array |
| getUnregisteredPlugins() | フォルダ設置のみのプラグインを取得する. | array |
| setEccubeConfig() | mixed | |
| setEntityManager() | mixed | |
| setTranslator() | mixed | |
| setSession() | mixed | |
| setFormFactory() | mixed | |
| setEventDispatcher() | mixed | |
| addSuccess() | mixed | |
| addError() | mixed | |
| addDanger() | mixed | |
| addWarning() | mixed | |
| addInfo() | mixed | |
| addRequestError() | mixed | |
| clearMessage() | mixed | |
| deleteMessage() | mixed | |
| setLoginTargetPath() | mixed | |
| forwardToRoute() | Forwards the request to another controller. | Response |
| isTokenValid() | Checks the validity of a CSRF token. | bool |
Properties
$pluginService
protected
PluginService
$pluginService
$BaseInfo
protected
BaseInfo
$BaseInfo
$pluginRepository
protected
PluginRepository
$pluginRepository
$pluginApiService
protected
PluginApiService
$pluginApiService
$composerService
private
ComposerServiceInterface
$composerService
$systemService
private
SystemService
$systemService
$eccubeConfig
protected
EccubeConfig
$eccubeConfig
$entityManager
protected
EntityManagerInterface
$entityManager
$translator
protected
TranslatorInterface
$translator
$formFactory
protected
FormFactoryInterface
$formFactory
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$session
protected
Session
$session
Methods
__construct()
PluginController constructor.
public
__construct(
$pluginRepository :
PluginRepository
, $pluginService :
PluginService
, $baseInfoRepository :
BaseInfoRepository
, $pluginApiService :
PluginApiService
, $composerService :
ComposerServiceInterface
, $systemService :
SystemService
)
: mixed
Parameters
- $pluginRepository : PluginRepository
- $pluginService : PluginService
- $baseInfoRepository : BaseInfoRepository
- $pluginApiService : PluginApiService
- $composerService : ComposerServiceInterface
- $systemService : SystemService
Tags
Return values
mixedindex()
インストール済プラグイン画面
public
index(
)
: array
Tags
Return values
arrayupdate()
インストール済プラグインからのアップデート
public
update(
$request :
Request
, $Plugin :
Plugin
, $cacheUtil :
CacheUtil
)
: RedirectResponse
Parameters
Tags
Return values
RedirectResponseenable()
対象のプラグインを有効にします。
public
enable(
$Plugin :
Plugin
, $cacheUtil :
CacheUtil
, $request :
Request
)
: RedirectResponse|JsonResponse
Parameters
Tags
Return values
RedirectResponse|JsonResponsedisable()
対象のプラグインを無効にします。
public
disable(
$request :
Request
, $Plugin :
Plugin
, $cacheUtil :
CacheUtil
)
: JsonResponse|RedirectResponse
Parameters
Tags
Return values
JsonResponse|RedirectResponseuninstall()
対象のプラグインを削除します。
public
uninstall(
$Plugin :
Plugin
, $cacheUtil :
CacheUtil
)
: RedirectResponse
Parameters
Tags
Return values
RedirectResponseinstall()
プラグインファイルアップロード画面
public
install(
$request :
Request
, $cacheUtil :
CacheUtil
)
: array|RedirectResponse
Parameters
- $request : Request
- $cacheUtil : CacheUtil
Tags
Return values
array|RedirectResponseauthenticationSetting()
認証キー設定画面
public
authenticationSetting(
$request :
Request
, $cacheUtil :
CacheUtil
)
: array
Parameters
- $request : Request
- $cacheUtil : CacheUtil
Tags
Return values
arraygetUnregisteredPlugins()
フォルダ設置のみのプラグインを取得する.
protected
getUnregisteredPlugins(
$plugins :
array
)
: array
Parameters
- $plugins : array
Tags
Return values
arraysetEccubeConfig()
public
setEccubeConfig(
$eccubeConfig :
EccubeConfig
)
: mixed
Parameters
- $eccubeConfig : EccubeConfig
Tags
Return values
mixedsetEntityManager()
public
setEntityManager(
$entityManager :
EntityManagerInterface
)
: mixed
Parameters
- $entityManager : EntityManagerInterface
Tags
Return values
mixedsetTranslator()
public
setTranslator(
$translator :
TranslatorInterface
)
: mixed
Parameters
- $translator : TranslatorInterface
Tags
Return values
mixedsetSession()
public
setSession(
$session :
SessionInterface
)
: mixed
Parameters
- $session : SessionInterface
Tags
Return values
mixedsetFormFactory()
public
setFormFactory(
$formFactory :
FormFactoryInterface
)
: mixed
Parameters
- $formFactory : FormFactoryInterface
Tags
Return values
mixedsetEventDispatcher()
public
setEventDispatcher(
$eventDispatcher :
EventDispatcherInterface
)
: mixed
Parameters
- $eventDispatcher : EventDispatcherInterface
Tags
Return values
mixedaddSuccess()
public
addSuccess(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddError()
public
addError(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddDanger()
public
addDanger(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddWarning()
public
addWarning(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddInfo()
public
addInfo(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddRequestError()
public
addRequestError(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedclearMessage()
public
clearMessage(
)
: mixed
Return values
mixeddeleteMessage()
public
deleteMessage(
)
: mixed
Return values
mixedsetLoginTargetPath()
public
setLoginTargetPath(
$targetPath :
string
[, $namespace :
mixed
= null ]
)
: mixed
Parameters
- $targetPath : string
- $namespace : mixed = null
Return values
mixedforwardToRoute()
Forwards the request to another controller.
public
forwardToRoute(
$route :
string
[, $path :
array
= [] ]
[, $query :
array
= [] ]
)
: Response
Parameters
- $route : string
The name of the route
- $path : array = []
An array of path parameters
- $query : array = []
An array of query parameters
Return values
Response —A Response instance
isTokenValid()
Checks the validity of a CSRF token.
protected
isTokenValid(
)
: bool
if token is invalid, throws AccessDeniedHttpException.