silverstripe-framework/control/injector/BeforeCallAspect.php
Marcus Nyeholt b269badfbe FEATURE: Added dependency injector for managing creation of new objects and their dependencies.
API CHANGE: Pass Object::create() calls to Injector::create().
API CHANGE: Add "RequestProcessor" injection point in Director, that Director will call preRequest() and postRequest() on.
2012-05-18 12:39:57 +12:00

28 lines
720 B
PHP

<?php
/**
* A BeforeCallAspect is run before a method is executed
*
* This is a declared interface, but isn't actually required
* as PHP doesn't really care about types...
*
* @author Marcus Nyeholt <marcus@silverstripe.com.au>
* @package sapphire
* @subpackage injector
* @license BSD http://silverstripe.org/BSD-license
*/
interface BeforeCallAspect {
/**
* Call this aspect before a method is executed
*
* @param object $proxied
* The object having the method called upon it.
* @param string $method
* The name of the method being called
* @param string $args
* The arguments that were passed to the method call
*/
public function beforeCall($proxied, $method, $args);
}