mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 08:17:22 +01:00
moved decorate implementation to dedicated intercept and pipe calls
This commit is contained in:
@ -31,8 +31,16 @@ final class Extendable
|
||||
$this->extendableClass::extend($name, $extend);
|
||||
}
|
||||
|
||||
public function decorate(string $name, Closure $extend): void
|
||||
public function pipe(string $name, Closure $pipe): void
|
||||
{
|
||||
$this->extendableClass::decorate($name, $extend);
|
||||
$this->extendableClass::pipe($name, $pipe);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|Closure $filter
|
||||
*/
|
||||
public function intercept(string $name, $filter, Closure $handler): void
|
||||
{
|
||||
$this->extendableClass::intercept($name, $filter, $handler);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user