Wiggum

a php framework

Application


The Application, (or wiggum\foundation\Application) is the heart and soul of your Wiggum application and is used to register your configs, routes, middleware and services The Application object is attached to all your controllers are a property automaticlly.

Base Path

You have the base path of your applicaiton available to you. Below examples shows how you would access it in your Controller.

<?php
      $this->app->basePath
?>

Configs

You have all your config varibles and arrays available to you. See configuration for more detail.

Services

You have all your services avalible to you.

Methods

Method Parameters Description
addService $name
$service
addMiddleware $middleware
getContainer -
getMiddleware -
getBasePath -
setBasePath $basePath
loadConfig array $config
loadBootFiles -
loadEnvironment $name
get $name