Project
class Project
Properties
| static | $instance | ||
| static array | $modules | ||
| string | $name | ||
| string | $description |
Methods
No description
Set the project's root path.
Get the project's root path.
Bootstraps the whole application: environment, error handling, session, modules, the project's own boot hook, routing and dispatch.
No description
Executes the project boot file if exists
Get the available languages for the project.
Check if the project supports a specific language.
Get the default language for the project.
Get the project active modules
Get if a project has a module
No description
Details
at line 16
__construct()
No description
at line 27
static Project
get()
Get the current project.
at line 43
static void
setRootPath(string $path)
Set the project's root path.
This package is installed as a Composer dependency, so it has no reliable way to find the consuming project's root on its own. The entry point (public/index.php) is expected to call this, once, before anything that resolves paths (root_path(), public_path(), config(), ...) is used.
at line 54
static string
getRootPath()
Get the project's root path.
at line 67
static void
init()
Bootstraps the whole application: environment, error handling, session, modules, the project's own boot hook, routing and dispatch.
at line 181
static
initPackages()
No description
at line 199
static
boot()
Executes the project boot file if exists
at line 211
array
getLanguages()
Get the available languages for the project.
at line 221
bool
hasLanguage(string $lang)
Check if the project supports a specific language.
at line 230
string
getDefaultLanguage()
Get the default language for the project.
at line 239
Collection
getModules()
Get the project active modules
at line 253
bool
hasModule(string $module)
Get if a project has a module
at line 258
static
pushModule(string $name, string $fqcn)
No description