class Url extends Facade (View source)

Properties

static protected $app from  Facade
static protected array $resolvedInstance

The resolved object instances.

from  Facade

Methods

static mixed
getFacadeRoot()

No description

static mixed
resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

from  Facade
static string
getFacadeAccessor()

Get the registered name of the component.

static 
clearResolvedInstance(string $name)

Clear a resolved facade instance.

from  Facade
static 
clearResolvedInstances()

Clear all of the resolved instances.

from  Facade
static Application
getFacadeApplication()

Get the application instance behind the facade.

from  Facade
static 
setFacadeApplication(Application $app)

Set the application instance.

from  Facade
static mixed
__callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

from  Facade
static URLInterface
to()

Resolve a URL from data.

static URLInterface
route($data) deprecated

This method is only here as a legacy decorator, use url::to.

static URLInterface
page() deprecated

This method is only here as a legacy decorator, use \URL::to($page).

Details

static mixed getFacadeRoot()

No description

Return Value

mixed

static protected mixed resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

Parameters

string $name

Return Value

mixed

static string getFacadeAccessor()

Get the registered name of the component.

Return Value

string

Exceptions

RuntimeException

static clearResolvedInstance(string $name)

Clear a resolved facade instance.

Parameters

string $name

static clearResolvedInstances()

Clear all of the resolved instances.

static Application getFacadeApplication()

Get the application instance behind the facade.

Return Value

Application

static setFacadeApplication(Application $app)

Set the application instance.

Parameters

Application $app

static mixed __callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

Parameters

string $method
array $args

Return Value

mixed

static URLInterface to()

Resolve a URL from data.

Working core examples for example.com: \Url::to('/some/path', 'some_action', $some_variable = 2) http://example.com/some/path/some_action/2/

\Url::to($page_object = \Page::getByPath('blog'), 'action') http://example.com/blog/action/

Return Value

URLInterface

static URLInterface route($data) deprecated

deprecated

This method is only here as a legacy decorator, use url::to.

Parameters

$data

Return Value

URLInterface

static URLInterface page() deprecated

deprecated

This method is only here as a legacy decorator, use \URL::to($page).

Return Value

URLInterface