Ioc
class Ioc (View source)
The Factory class.
Methods
static Container
factory(string $name = null, string $profile = null)
getInstance
static Container
getContainer(string $name = null, string $profile = null)
getContainer
static void
setContainer(string $profile, Container $container)
setContainer
static void
setProfile(string $name = 'windwalker')
setProfile
static string
getProfile()
Method to get property Profile
static void
reset(string $profile = null)
reset
static WebApplication|Console
getApplication()
getApplication
static UserManager
getUserManager()
getUserManager
static WebEnvironment
getEnvironment()
getEnvironment
static Input
getInput()
getInput
static Dispatcher
getDispatcher()
getDispatcher
static Session
getSession()
getSession
static Cache
getGlobalCache()
getCache
static AbstractDatabaseDriver
getDatabase()
getDB
static Router
getRouter()
getRouter
static Language
getLanguage()
getLanguage
static UriData
getUriData()
getUriData
static Run
getDebugger()
getDebugger
static NullLogger|Logger
getLogger()
getLogger
static AbstractPackage
getPackage(string $name)
getPackage
static mixed
get(string $key, string $child = null, bool $forceNew = false)
get
Container
share(string $key, callable $callback, string $name = null)
Convenience method for creating shared keys.
static mixed
getNewInstance(string $key, string $child = null)
getNewInstance
static boolean
exists(string $key, string $child = null)
exists
static string
dump(int $level = 10, string $name = null, string $profile = null)
dump
Details
at line line 47
static Container
factory(string $name = null, string $profile = null)
getInstance
at line line 90
static Container
getContainer(string $name = null, string $profile = null)
getContainer
at line line 103
static void
setContainer(string $profile, Container $container)
setContainer
at line line 119
static void
setProfile(string $name = 'windwalker')
setProfile
at line line 131
static string
getProfile()
Method to get property Profile
at line line 143
static void
reset(string $profile = null)
reset
at line line 160
static WebApplication|Console
getApplication()
getApplication
at line line 170
static UserManager
getUserManager()
getUserManager
at line line 190
static WebEnvironment
getEnvironment()
getEnvironment
at line line 200
static Input
getInput()
getInput
at line line 210
static Dispatcher
getDispatcher()
getDispatcher
at line line 220
static Session
getSession()
getSession
at line line 230
static Cache
getGlobalCache()
getCache
at line line 240
static AbstractDatabaseDriver
getDatabase()
getDB
at line line 250
static Router
getRouter()
getRouter
at line line 260
static Language
getLanguage()
getLanguage
at line line 270
static UriData
getUriData()
getUriData
at line line 280
static Run
getDebugger()
getDebugger
at line line 290
static NullLogger|Logger
getLogger()
getLogger
at line line 302
static AbstractPackage
getPackage(string $name)
getPackage
at line line 316
static mixed
get(string $key, string $child = null, bool $forceNew = false)
get
at line line 334
Container
share(string $key, callable $callback, string $name = null)
Convenience method for creating shared keys.
at line line 347
static mixed
getNewInstance(string $key, string $child = null)
getNewInstance
at line line 360
static boolean
exists(string $key, string $child = null)
exists
at line line 374
static string
dump(int $level = 10, string $name = null, string $profile = null)
dump