class Workbench

Constants

protected DEFAULT_CORE_BINDINGS

The default cached core workbench bindings.

Properties

static protected Config|null $cachedConfiguration

The cached test case configuration.

static protected array<string, null|string> $cachedNamespaces

Cached namespace by path.

static protected null|Authenticatable>|false $cachedUserModel

The cached test case configuration.

static array{kernel: array{console?: null|string, http?: null|string}, handler: array{exception?: null|string}} $cachedCoreBindings

The cached core workbench bindings.

Methods

static void
start(Application $app, Config $config, array $providers = [])

Start Workbench.

static void
startWithProviders(Application $app, Config $config)

Start Workbench with providers.

static void
discoverRoutes(Application $app, Config $config)

Discover Workbench routes.

static void
discoverCommandsRoutes(Application $app)

Discover Workbench command routes.

static Config
configuration()

Resolve the configuration.

static string|null
applicationConsoleKernel()

Get application Console Kernel implementation.

static string|null
applicationHttpKernel()

Get application HTTP Kernel implementation using Workbench.

static string|null
applicationExceptionHandler()

Get application HTTP exception handler using Workbench.

static string|null
applicationUserModel()

Get application User Model.

static string|null
detectNamespace(string $type, bool $force = false)

Detect namespace by type.

static void
flush()

Flush the cached configuration.

static void
flushCachedClassAndNamespaces()

Flush the cached namespace configuration.

Details

at line 82
static void start(Application $app, Config $config, array $providers = [])

internal  
 

Start Workbench.

Parameters

Application $app
Config $config
array $providers

Return Value

void

at line 100
static void startWithProviders(Application $app, Config $config)

internal  
 

Start Workbench with providers.

Parameters

Application $app
Config $config

Return Value

void

at line 116
static void discoverRoutes(Application $app, Config $config)

Discover Workbench routes.

Parameters

Application $app
Config $config

Return Value

void

at line 251
static void discoverCommandsRoutes(Application $app)

Discover Workbench command routes.

Parameters

Application $app

Return Value

void

at line 285
static Config configuration()

Resolve the configuration.

Return Value

Config

at line 300
static string|null applicationConsoleKernel()

Get application Console Kernel implementation.

Return Value

string|null

at line 314
static string|null applicationHttpKernel()

Get application HTTP Kernel implementation using Workbench.

Return Value

string|null

at line 328
static string|null applicationExceptionHandler()

Get application HTTP exception handler using Workbench.

Return Value

string|null

at line 344
static string|null applicationUserModel()

Get application User Model.

Return Value

string|null

at line 366
static string|null detectNamespace(string $type, bool $force = false)

Detect namespace by type.

Parameters

string $type
bool $force

Return Value

string|null

at line 406
static void flush()

Flush the cached configuration.

Return Value

void

at line 418
static void flushCachedClassAndNamespaces()

Flush the cached namespace configuration.

Return Value

void