// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Request\Requestable;
/**
* An action for the profile page in login area
// Own namespace
namespace CoreFramework\Action\PostRegistration\Login;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A post registration action to login after the registration is done
*
/**
* Updates the authorization data and/or sets additional tracking data
*
- * @param $requestInstance An instance of a Requestable class
* @return void
*/
public function updateAuthData () {
use CoreFramework\Middleware\Debug\DebugMiddleware;
use CoreFramework\Registry\Register;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
use CoreFramework\Stream\Output\OutputStreamer;
use CoreFramework\Template\CompileableTemplate;
private $realClass = 'BaseFrameworkSystem';
/**
- * Instance of a request class
+ * Instance of a Requestable class
*/
private $requestInstance = NULL;
/**
- * Instance of a response class
+ * Instance of a Responsable class
*/
private $responseInstance = NULL;
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Request\Requestable;
/**
* A general (base) command
// Own namespace
namespace CoreFramework\Command\Fuse;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A Fuse console command
*
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Generic\NullPointerException;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A command for the confirmation link handling
// Own namespace
namespace CoreFramework\Command\Form;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A command for the form processor
*
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A command for the home page
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A command for the login area (member/gamer area)
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A command for the login form
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A command for the login failed page
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A command for logout
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A command for the login failed page
// Own namespace
namespace CoreFramework\Command\Failed;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A command for Problem page
*
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A command class for the registration form
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A command class for resending the confirmation link
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A command for Status page
// Own namespace
namespace CoreFramework\Command\Captcha;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A command for creating code CAPTCHAs
*
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Request\Requestable;
/**
* A generic controller class. You should extend this base class if you want to
* Handles the given request and response, redirects to login_failed if
* UserAuthorizationException is thrown.
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function genericHanleRequestLoginFailedRedirect (Requestable $requestInstance, Responseable $responseInstance) {
* Generic execute of the command: pre and post filters with redirect
* but request becomes valid after pre-filters run.
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function genericHanleRequestLoginAreaFailedRedirect (Requestable $requestInstance, Responseable $responseInstance) {
* Executes given filter chain chain
*
* @param $filterChain Chain of the filter to execute
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
* @throws InvalidFilterChainException If the filter chain is invalid
*/
/**
* Executes all pre filters
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
protected function executePreFilters (Requestable $requestInstance, Responseable $responseInstance) {
/**
* Executes all post filters
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
protected function executePostFilters (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Default;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* The default controller for all other console requests
*
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* The default controller with news for e.g. home or news page
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Default;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* The default controller for all other web requests
*
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Login;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* Controller for login form with password reminder and maybe enabled
* "guest-login" button
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Failed;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A controller for login failed page
*
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* The default controller for logout page
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Logout;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* Controller for logout done page
*
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Problem;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* Controller for problem requests
*
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Status;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* Controller for changing user status
*
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Form;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A controller for handling sent forms
*
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* Controller for login area with news
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A controller for a code-based CAPTCHA where the user has to repeat a shown code
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Controller\Default;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A default controller for images
*
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Own namespace
namespace CoreFramework\Database\Result;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A database result class
*
/**
* Transfers the content of this template engine to a given response instance
*
- * @param $responseInstance An instance of a response class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function transferToResponse (Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Request\Requestable;
/**
* A local payment discovery class. This class looks in local database for
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A news factory for web pages
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class HtmlNewsFactory extends BaseFactory {
- /**
- * Instance of a request class
- */
- private $requestInstance = NULL;
-
/**
* Protected constructor
*
* Singleton getter for a special factory instance depending on the given
* request
*
- * @param $requestInstance An instance of a request class
+ * @param $requestInstance An instance of a Requestable class
* @return $factoryInstance An instance of a HtmlNewsFactory class
*/
public static final function createFactoryByRequest (Requestable $requestInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A factory class for socket registries
use CoreFramework\Configuration\FrameworkConfiguration;
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A factory class for socket registries
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for checking user permissions
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for detecting email changes
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for password change detection
// Own namespace
namespace CoreFramework\Filter\RulesCheckbox;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A filter for checking if the user has accepted the rules. This is mainly
* used and done in registration process and should not be removed from your
// Import framework stuff
use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Request\Requestable;
/**
* A general filter decorator for decorating filters with other filters
/**
* Execute the inner filter
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public final function execute (Requestable $requestInstance, Responseable $responseInstance) {
/**
* Do the execution of the filter
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
abstract public function doExecute (Requestable $requestInstance, Responseable $responseInstance);
namespace CoreFramework\Filter\Chain;
// Import framework stuff
-use use CoreFramework\Registry\Registerable;
use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Registry\Registerable;
+use CoreFramework\Request\Requestable;
/**
* A filter chain for pre and post filters
* Process all added filters. Please note that filters must throw
* FilterChainException if they need to interrupt the filter chain.
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function processFilters (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A filter for checking if value "encrypt" is set and fine
// Own namespace
namespace CoreFramework\Filter\User\Username;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A filter for checking if username "guest" has been choosen as configured. If
* so the password will be set to the configured password.
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A pre-filter for downloading news from a source. This can be a XML feed or
// Own namespace
namespace CoreFramework\Filter\News;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A post-filter for processing downloaded news. This will prepare the news fir
* output to the template engine.
// Own namespace
namespace CoreFramework\Filter\Generic;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* As the name said: A null filter does just pass through the data. This is
* useful to make other filters switch on/off-able.
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Generic\NullPointerException;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for payment discovery. This class discovers the payment type and
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for updating the user account status to confirmed
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for updating the user account like last activity, last action
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A concrete filter for validating the email address. This filter may intercept
// Own namespace
namespace CoreFramework\Filter\Validator\Password;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A concrete filter for validating the password. This filter may intercept
* the filter chain if no password is given or if both passwords didn't match.
/**
* Creates an instance of this filter class
*
- * @return $filterInstance An instance of this filter class
+ * @return $filterInstance An instance of this filter class
*/
public static final function createPasswordValidatorFilter () {
// Get a new instance
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A concrete filter for validating the username. This filter may intercept the
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A concrete filter for validating the password. This filter may intercept
// Own namespace
namespace CoreFramework\Filter\Verifier\User;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A verifier filter for birthday data
*
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for checking if supplied confirmation code is valid.
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A concrete filter for validating code graphical CAPTCHAs with hashes
// Own namespace
namespace CoreFramework\Filter\Verifier\User;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A concrete filter for validating the guest password. This filter may intercept
* the filter chain if no password is given or the password is invalid
// Own namespace
namespace CoreFramework\Filter\Verifier\Password;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A concrete filter for validating the password. This filter may intercept
* the filter chain if no password is given or the password is invalid
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A concrete filter for verfying the guest username. This filter may intercept the
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A concrete filter for verfying the username. This filter may intercept the
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for checking if user status is GUEST or CONFIRMED.
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Request\Requestable;
/**
* A filter for checking if user status is UNCONFIRMED.
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Request\Requestable;
/**
* A class for handling user points which can be real or Internet currency
* @param $criteriaInstance An instance of a StoreableCriteria class
* @param $requestInstance An instance of a Requestable class
* @return void
+ * @todo $requestInstance is currently unused
*/
public function addElementsToDataSet (StoreableCriteria $criteriaInstance, Requestable $requestInstance = NULL) {
// Add user id
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Request\Requestable;
/**
* A console news reader class reads news from database layer
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Request\Requestable;
/**
* A default news reader class reads news from database layer
// Own namespace
namespace CoreFramework\Request;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A concrete request class
*
// Own namespace
namespace CoreFramework\Request;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* A concrete and secured HTML request class to make HTML requests more abstract
*
// Import framework stuff
use CoreFramework\Manager\ManageableApplication;
+use CoreFramework\Request\Requestable;
/**
* A action resolver for local (non-hubbed) actions
* Returns an action instance for a given request class or null if
* it was not found
*
- * @param $requestInstance An instance of a request class
+ * @param $requestInstance An instance of a Requestable class
* @return $actionInstance An instance of the resolved action
* @throws InvalidActionException Thrown if $actionName is
* invalid
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Request\Requestable;
/**
* A generic command resolver class
* Returns an command instance for a given request class or null if
* it was not found
*
- * @param $requestInstance An instance of a request class
+ * @param $requestInstance An instance of a Requestable class
* @return $commandInstance An instance of the resolved command
* @throws InvalidCommandException Thrown if $commandName is
* invalid
/**
* Transfers the content of this template engine to a given response instance
*
- * @param $responseInstance An instance of a response class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
public function transferToResponse (Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Request\Requestable;
/**
* A general user class
* Checks if supplied password hash in request matches with the stored in
* database.
*
- * @param $requestInstance A requestable class instance
+ * @param $requestInstance A Requestable class instance
* @return $matches Whether the supplied password hash matches
*/
public function ifPasswordHashMatches (Requestable $requestInstance) {
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Request\Requestable;
/**
* A generic class for handling guests
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Request\Requestable;
/**
* An interface for performable actions
// Own namespace
namespace CoreFramework\Command;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* An interface for commands for the front controller
*
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Request\Requestable;
/**
* An interface for controller
/**
* Handles the given request and response
*
- * @param $requestInstance An instance of a request class
- * @param $responseInstance An instance of a response class
+ * @param $requestInstance An instance of a Requestable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
function handleRequest (Requestable $requestInstance, Responseable $responseInstance);
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Request\Requestable;
/**
* An interface for classes which are allowed to add criteria
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Request\Requestable;
/**
* An interface for discovery
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Request\Requestable;
/**
* A class for pre and post filters
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Request\Requestable;
/**
* An interface for user login classes
// Own namespace
namespace CoreFramework\Resolver\Action;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* An instance for action resolver classes
*
/**
* Returns an action instance for a given request class
*
- * @param $requestInstance An instance of a request class
+ * @param $requestInstance An instance of a Requestable class
* @return $actionInstance An instance of the resolved action
*/
function resolveActionByRequest (Requestable $requestInstance);
// Own namespace
namespace CoreFramework\Resolver\Command;
+// Import framework stuff
+use CoreFramework\Request\Requestable;
+
/**
* An instance for command resolver classes
*
/**
* Returns an command instance for a given request class
*
- * @param $requestInstance An instance of a request class
+ * @param $requestInstance An instance of a Requestable class
* @return $commandInstance An instance of the resolved command
*/
function resolveCommandByRequest (Requestable $requestInstance);
/**
* Transfers the content of this template engine to a given response instance
*
- * @param $responseInstance An instance of a response class
+ * @param $responseInstance An instance of a Responsable class
* @return void
*/
function transferToResponse (Responseable $responseInstance);
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Request\Requestable;
/**
* An interface for manageable accounts (logged-in users and guests likewise)
* Checks if supplied password hash in request matches with stored in
* database.
*
- * @param $requestInstance A requestable class instance
+ * @param $requestInstance A Requestable class instance
* @return $matches Whether the supplied password hash matches
*/
function ifPasswordHashMatches (Requestable $requestInstance);