Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942343
TasksMap.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
701 B
Referenced Files
None
Subscribers
None
TasksMap.php
View Options
<?php
namespace
Nasqueron\SAAS\PhpBB\Runner
;
use
InvalidArgumentException
;
use
Nasqueron\SAAS\PhpBB\Tasks\BootstrapSqliteRepository
;
use
Nasqueron\SAAS\PhpBB\Tasks\CreateDatabase
;
class
TasksMap
{
public
static
function
getMap
()
:
array
{
return
[
'sites:createdb'
=>
CreateDatabase
::
class
,
'sites:bootstrap'
=>
BootstrapSqliteRepository
::
class
,
];
}
public
static
function
getTaskClassName
(
string
$command
)
{
foreach
(
self
::
getMap
()
as
$taskCommand
=>
$taskClassName
)
{
if
(
$command
===
$taskCommand
)
{
return
$taskClassName
;
}
}
throw
new
InvalidArgumentException
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Dec 26, 16:12 (7 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315128
Default Alt Text
TasksMap.php (701 B)
Attached To
Mode
rSAASPHPBB saas-phpbb helper command
Attached
Detach File
Event Timeline
Log In to Comment