Application class
The Application class takes care of Application execution, and acts as an dependency injection container, with the help of Pimple.
- Author
- Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com
- Copyright
- 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT 0.6 Slaxer Component Base Command Base Command for the Component set of commands includes functionality that is same and/or similar accross all different types of Component commands. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 todo 1. Slaxer Install Component Command Install Component command contains functionality to install the command into the Framework. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 todo 3. Slaxer Remove Component Command Remove Component command contains functionality to remove the command from the Framework. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 todo 4. Slaxer Remove Component Command Remove Component command contains functionality to remove the command from the Framework. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 todo 5. Base Controller The SlaxWeb Framework Base Controller helps with simplifying controller loading by providing a constructor that will copy the Application object instance to the protected properties, and set common services to them as well, like the Logger and the Config container objects. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Invalid Configuration Handler Exception Thrown if an invalid handler is requested to be injected to the Config class. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Configuration Exception Thrown when the Factory or the Service Provider detect that the Config component has not been registered, or the configuration of the logger is not complete. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Unknown Handler Exception Thrown when the Factory or the Service Provider receive an unknown logger type that they should instantiate. Also thrown when that provider exists, but is not yet supported by the Logger component. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Config Provider Register the correct config handler based on the container property 'configHandler', and the Config service itself. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Hooks Service Provider Service Provider for the Pimple for convenient creation of the Hooks container service, and creation of new, empty Hook objects for injection into the container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Logger Service Provider Register the logger and its handler as services. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Output component service provider The Output component service provider exposes the Output manager and its helpers to the dependency injection container as services. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Bootstrap Service Provider Bootstrap Service Provider exposes the Controller Loader service to the dependency injection container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Route Collection Helper The Route Collection Helper provides an easy way to add Routes to the Container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Router Service Provider Router Service Provider exposes classes of the Router component to the dependency injection container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Cache Component Config Cache Component Configuration file Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Handler This abstract Cache Handler class defines functionality for handling data and defines abstract methods for functionality that each specific handler must implement. All cache handlers must extend from this abstract class. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Data Expired Exception Thrown if the data has expired and is no longer valid. The exception also provides a method to retrieve the unserialized data that caused the exception. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Data Invalid Exception Thrown if the data in the case is in any way malformed, and can't be unserialized or the unserialized data does not yield the expected array. It provides an extra method to obtain the serialized data that caused the exception. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Data Not Found Exception Thrown when an attempt is made to retrieve missing data from the cache. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Exception Base component exception from which all component exceptions extend from. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Store Not Writable Exception Thrown if the cache handler does not have permission to write to the cache store. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Write Cache Exception Thrown when an error occures when trying to store data into the cache. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 File Cache Handler The File Cache Handler writes the cache data to a file in the filesystem with the cache data name as part of the file name. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Manager The Cache Manager class manages writes and reads from the cache through a cache handler on which it depends. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Component Service Provider Registers the manager and handler services to the service container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Database Model Extension The Model Extension class overrides the required methods to store the obtained data into cache, and return it before the actuall call is made, and adds other required methods to manipulate the cache. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Cache Component Service Provider Registers the extended model loader. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Config Class The Container class needs to communicate with the Config Handler, and raise appropriate Exceptions on errors. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Config Parse Exception Thrown when the configuration handler returns the code error for unable to parse the configuration resource. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Configuration Resource Not Found Exception Thrown when the configuration handler returns the code error for unable to find resource. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Missing Key Exception Thrown when the key is not found when trying to unset a configuration item. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Resource Location Exception Thrown when the resource location passed to the Config class is not in string format. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Resource Name Invalid Exception Thrown when the received resource name for loading is not valid. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Yaml Missing Exception Thrown when the symfony/yaml package is not installed or is in the incorrect version. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Config Component Factory The Factory takes care of all the Config class dependencies, instantiates it, and returns its object. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Config Handler Abstract Class Provides functionality for retrieval, setting, and removing of config items, as well as defines an abstract method for loading of config items from a resource, and parsing them to the internal container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 JSON Config Handler Handles loadinf of JSON configuration files, and parses their contents into the configuration array. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 PHP Config Handler Handles loading of PHP config files, and parsing their contents into the config array. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 XML Config Handler Handles loading of XML config files, and parsing their contents into the config array. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Yaml Config Handler Handles loading of Yaml config files, and parsing their contents into the config array. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 Database Component Config Database Component Configuration file Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.4 Base Model Base Model which all Model classes should extend from. The Base Model provides functionality for execution of queries against a database with the help of the database library which provides a connection to a specific RDBS, and also provides basic query building methods. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Base Model Results trait In use by the Base Model for accessing the Result object. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Database Error Holds the information about a database error that occured while executing a query. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Column Not Found Error Exception Thrown when a request to retrieve an non-existant column to the Result object is made. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 No Data Exception Thrown when a request to retrieve data from the Base Model is made, yet no data was retrieved from the database before. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 No Error Exception Thrown when no query raised an exception yet an attempt to retrieve an error was made. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 No Join Condition Exception Thrown when a join is added but a condition for it does not exist. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 No Join Table Exception No table to join with was added to the builder, but an attempt to add join conditions was made, which is a non-recoverable error, and this exception is thrown. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 No Primary Key Exception Thrown when model joining is attempted and the joining model does not have a primary key set. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Row Not Found Error Exception Thrown when a request to retrieve an non-existant row to the Result object is made. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Database Library Interface Provides method signatures that a SlaxWeb Framework Database Library must implement in order to be considered a usable Database Library. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Database Result Interface The result interface provides the method signatures for each database library result class. Every result class muss implement this interface and provide the required functionality. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Query Builder The Query Builder is used to do exactly what its name suggests. Build SQL queries for execution. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Where Predicate Group The Where Predicate Group class groups multiple Predicate objects that allows building more complicated where statements. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Where Statement Predicate The Where Statement Predicate defines a Column, a value, and an comparison operator for the SQL DML predicate. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Database Component Service Provider The Database Component Service Provider registers the Model Loader service to the DIC. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 PDO Database Library PDO Database Library for SlaxWeb Framework provides connection to a RDB with the help of the PHP Data Objects, or PDO. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Database Result Class The result class holds the result of an executed statement, which is easy to navigate and retrieve data from. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 PDO Database Library Service Provider Registers the Library service to the DIC Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Unknown Property Exception Thrown when an access to an missing, unknown or otherwise invalid property is made. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 SlaxWeb Framework Application Configuration Application configuration options Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 SlaxWeb Framework Logger Config Contains configuration options for the Logger. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 SlaxWeb Framework Output Component Configuration Main configuration file for the outptu component. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 SlaxWeb Framework Providers Configuration Service provider lists and configuration can be found in this file. Those were previously located in 'app.php' but have since been moved to 'provider.php'. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Sample Provider Only an example, to show how Providers may be loaded. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Default Routes Collection Provides a default route, to show how Routes must be defined in SlaxWeb Framework. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 SlaxWeb Framework Bootstrap The Bootstrap is the first thing getting executed in the Framework. It initiates the application It returns the instance of the application to the requestor, so it can start the application and print the response with the response object. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 SlaxWeb Framework Slaxer Bootstrap Bootstrap file for the CLI instance, loaded by slaxer. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 SlaxWeb Framework Web Bootstrap Bootstrap file for the web instance, loaded by the web request handlers. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 SlaxWeb Framework Front Controller This is the Front Controller of the SlaxWeb Framework. It handles all incoming requests and prints response back to the caller. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Magic Get Trait The Magic Get trait provides only the magic '__get' method, to simplify and unify protected property retrieval. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Magic Set Trait The Magic Set trait provides only the magic '__set' method, to simplify and unify setting of values to protected properties. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.1 Hooks Container Class The Container class holds all user definitions for hook points in the form of Hook class objects. It also provides methods for adding new definitions, and execution of those user definitions. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Hook Property Change Exception Thrown if a hook property is changed through normal set access. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Unknown Property Exception Thrown when an access is made to a set/get magic method to an unknown(missing) property. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Hooks Factory The Factory provides convenient way to instantiate the Hooks container, and retrieve a fresh, empty Hook object for injection into the container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Hook Class The Hook class is used to define that hooks actions, and is injected into the container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Hooks Definition Helper Provide a simple way for user Hooks Definition classes to extend from this class and not easily load the hook definitions. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Logger Helper Helper class for Logger components, provides constants for easier configuration. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.5 Abstract Output Handler Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.2 Missing Output Handler Exception Thrown when an attempt to retrieve to use the Output Handler was made but non was available, neither directly nor through a getter. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.2 SlaxWeb Json Output Handler The Json Output Handler encodes the data and added error messages as JSON when rendering for output. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.2 SlaxWeb View Output Handler The View Output handler accepts the SlaxWeb View objects, and stores them internally. It also stores view data that will be injected into the views, and renders them in the order that they are received, when the call to render occurs. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.2 Error handler interface Handlers that implement this interface are capable of handling the display of errors, and all errors and uncaught exceptions during the execution of the application should be forwardded to that handler. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.2 Output Manager The Output Manager class is the main class of the Output component. It registers a shutdown function for outputing data from the Response object. If permitted by configuration it will also render all gathered resources for the active mode and append them to output. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.2 Container class of Router component The Container class holds all Route definitions and provides access to said Routes to the Processor class. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Dispatcher Dispatcher is the main class of the Router component, it must find the corresponding Route to the retrieved Request, and execute that Routes callable definition and return the Response object. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Invalid Method Exception Thrown by the Route class when the retrieved HTTP method is not valid or not known. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Route Incomplete Exception Thrown by the container if it contains a Route object that does not hold all required parameters. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Route Not Found Exception Thrown when now mathing Route definition was found for the Request, and no 404 Route was defined. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Unknown Property Exception Thrown when an access to an missing, unknown or otherwise invalid property is made. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Request class The Request class extends the Symfony class and provides an additional 'addQuery' method for adding parameters to the query parameters Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Response class The Response class extends the Symfony class and provides an additional 'addContent' method for concatenating content with existing content. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Route class of Router component The instance of a Route class is one route definition. Each Route must be stored in the Container class. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Session Component Config Session Component Configuration file Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.4 Missing Dependency Exception Thrown when the session library is being instantiated, but the required dependency service is not available in the DIC. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.4 Session Library Service Provider Registers the Library to the DIC as a service Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.4 Slaxer Service Provider Initiate the Symfony Console Component, and expose it to the DIC as a service. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.3 View Component Config View Component Configuration file Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.4 Abstract Loader Abstract loader has to be extended by all template loaders, as it provides some base functionality, properties, and constants. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Base View Base view which all View classes should extend from. The Base View handles loading of templates and adding them to the Response object. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Template Not Found Exception Thrown when the requested template file is not found. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 PHP Template Loader The PHP Template Loader loads the PHP Template file, and injects the set data into the template. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 PHP Template Loader Provider Registers the PHP Template Loader as the template loader with the Dependency Injection Container. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 View Component Main Service Provider Main Service provider defines the view loader service. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.6 Twig Template Engine Config File Used to configure the template engine and prepare it for use. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.4 Post Component configuration script Executed after the ViewTwig subcomponent has been installed and configured. Used to enable the Twig Template Loader Registration. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.4 Twig Template Loader Twig template loader loads and parses the twig template files. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.5 View Twig SubComponent Service Provider Registers the twig loader service and the template loader service, but only if the configured loader is 'Twig'. Tomaz Lovrec tomaz.nosp@m..lov.nosp@m.rec@g.nosp@m.mail.nosp@m..com 2016 (c) Tomaz Lovrec MIT https://opensource.org/licenses/MIT https://github.com/slaxweb/ 0.5