InstallController extends AbstractController
Table of Contents
Constants
DEFAULT_AUTH_MAGIC
default value of auth magic
public
mixed
$DEFAULT_AUTH_MAGIC
= '<change.me>'
Properties
$requiredModules
protected
mixed
$requiredModules
= ['pdo', 'phar', 'mbstring', 'zlib', 'ctype', 'session', 'JSON', 'xml', 'libxml', 'OpenSSL', 'zip', 'cURL', 'fileinfo', 'intl']
$recommendedModules
protected
mixed
$recommendedModules
= ['hash', 'mcrypt']
$eccubeDirs
protected
mixed
$eccubeDirs
= ['app/Plugin', 'app/PluginData', 'app/proxy', 'app/template', 'html', 'var', 'vendor']
$eccubeFiles
protected
mixed
$eccubeFiles
= ['composer.json', 'composer.lock']
$encoder
protected
PasswordEncoder
$encoder
$cacheUtil
protected
CacheUtil
$cacheUtil
$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()
public
__construct(
$encoder :
PasswordEncoder
, $cacheUtil :
CacheUtil
)
: mixed
Parameters
- $encoder : PasswordEncoder
- $cacheUtil : CacheUtil
Return values
mixedindex()
最初からやり直す場合、SESSION情報をクリア.
public
index(
)
: RedirectResponse
Tags
Return values
RedirectResponsestep1()
ようこそ.
public
step1(
$request :
Request
)
: array|RedirectResponse
Parameters
- $request : Request
Tags
Return values
array|RedirectResponsestep2()
ディレクトリとファイルの書き込み権限をチェック.
public
step2(
)
: array
Tags
Return values
arraystep3()
サイトの設定.
public
step3(
$request :
Request
)
: array|RedirectResponse
Parameters
- $request : Request
Tags
Return values
array|RedirectResponsestep4()
データベースの設定.
public
step4(
$request :
Request
)
: array|RedirectResponse
Parameters
- $request : Request
Tags
Return values
array|RedirectResponsestep5()
データベースの初期化.
public
step5(
$request :
Request
)
: array|RedirectResponse
Parameters
- $request : Request
Tags
Return values
array|RedirectResponsecomplete()
インストール完了
public
complete(
$request :
Request
)
: mixed
Parameters
- $request : Request
Tags
Return values
mixedgetSessionData()
protected
getSessionData(
$session :
SessionInterface
)
: mixed
Parameters
- $session : SessionInterface
Return values
mixedremoveSessionData()
protected
removeSessionData(
$session :
SessionInterface
)
: mixed
Parameters
- $session : SessionInterface
Return values
mixedsetSessionData()
protected
setSessionData(
$session :
SessionInterface
[, $data :
mixed
= [] ]
)
: mixed
Parameters
- $session : SessionInterface
- $data : mixed = []
Return values
mixedcheckModules()
protected
checkModules(
)
: mixed
Return values
mixedcreateConnection()
protected
createConnection(
$params :
array
)
: mixed
Parameters
- $params : array
Return values
mixedcreateEntityManager()
protected
createEntityManager(
$conn :
Connection
)
: mixed
Parameters
- $conn : Connection
Return values
mixedcreateDatabaseUrl()
public
createDatabaseUrl(
$params :
array
)
: string
Parameters
- $params : array
Return values
stringextractDatabaseUrl()
public
extractDatabaseUrl(
$url :
string
)
: array
Parameters
- $url : string
Return values
arraycreateMailerUrl()
public
createMailerUrl(
$params :
array
)
: string
Parameters
- $params : array
Tags
Return values
stringextractMailerUrl()
public
extractMailerUrl(
$url :
string
)
: array
Parameters
- $url : string
Return values
arraycreateMigration()
protected
createMigration(
$conn :
Connection
)
: mixed
Parameters
- $conn : Connection
Return values
mixeddropTables()
protected
dropTables(
$em :
EntityManager
)
: mixed
Parameters
- $em : EntityManager
Return values
mixedcreateTables()
protected
createTables(
$em :
EntityManager
)
: mixed
Parameters
- $em : EntityManager
Return values
mixedimportCsv()
protected
importCsv(
$em :
EntityManager
)
: mixed
Parameters
- $em : EntityManager
Return values
mixedinsert()
protected
insert(
$conn :
Connection
, $data :
array
)
: mixed
Parameters
- $conn : Connection
- $data : array
Return values
mixedupdate()
protected
update(
$conn :
Connection
, $data :
array
)
: mixed
Parameters
- $conn : Connection
- $data : array
Return values
mixedmigrate()
public
migrate(
$migration :
Migration
)
: mixed
Parameters
- $migration : Migration
Return values
mixedcreateAppData()
public
createAppData(
$params :
array
, $em :
EntityManager
)
: array
Parameters
- $params : array
- $em : EntityManager
Return values
arraysendAppData()
protected
sendAppData(
$params :
array
, $em :
EntityManager
)
: mixed
Parameters
- $params : array
- $em : EntityManager
Return values
mixedgetDatabaseVersion()
public
getDatabaseVersion(
$em :
EntityManager
)
: string
Parameters
- $em : EntityManager
Return values
stringconvertAdminAllowHosts()
public
convertAdminAllowHosts(
$adminAllowHosts :
mixed
)
: string
Parameters
- $adminAllowHosts : mixed
Return values
stringisInstalled()
protected
isInstalled(
)
: bool
Return values
boolisInstallEnv()
protected
isInstallEnv(
)
: bool
Return values
boolsetEccubeConfig()
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.