mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8dd644d25d
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
28 lines
776 B
PHP
28 lines
776 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Core\Injector;
|
|
|
|
/**
|
|
* 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...
|
|
*/
|
|
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
|
|
* @param mixed $alternateReturn
|
|
* An alternative return value that should be passed
|
|
* to the caller. Only has effect of beforeCall returns false
|
|
*/
|
|
public function beforeCall($proxied, $method, $args, &$alternateReturn);
|
|
}
|