Documentation

AppCollection extends DefinedCollection
in package

The app collection is intended to provide spitfire with a good mechanism to look up applications by either class path or url.

Tags
author

César de la Cal Bretschneider cesar@magic3w.com

Table of Contents

byClassName()  : App|null
When passing a class name to this function, the system must return a class that this correlates with.
byUrl()  : App|null
Returns the application attached to the path in question.

Methods

byClassName()

When passing a class name to this function, the system must return a class that this correlates with.

public byClassName(string|object $name) : App|null
Parameters
$name : string|object
Tags
todo

Introduce AppNotFound exception

todo

Deal with special class types like controllers and directors

Return values
App|null

byUrl()

Returns the application attached to the path in question.

public byUrl(string $url) : App|null
Parameters
$url : string
Tags
todo

Introduce AppNotFound exception

Return values
App|null

Search results