Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
closurewrapper.php
1
<?php
2
3
namespace
Bitrix\Main\Engine\ActionFilter
;
4
5
6
use
Bitrix\Main\Event
;
7
use Closure;
8
9
final
class
ClosureWrapper
extends
Base
10
{
14
private
$closure;
15
20
public
function
__construct
(Closure $closure)
21
{
22
$this->closure = $closure->bindTo($this, $this);
23
parent::__construct();
24
}
25
26
public
function
onBeforeAction
(
Event
$event)
27
{
28
return
call_user_func($this->closure, $event);
29
}
30
31
public
function
onAfterAction
(
Event
$event)
32
{
33
return
call_user_func($this->closure, $event);
34
}
35
}
Bitrix\Main\Engine\ActionFilter\Base
Definition
base.php:15
Bitrix\Main\Engine\ActionFilter\ClosureWrapper
Definition
closurewrapper.php:10
Bitrix\Main\Engine\ActionFilter\ClosureWrapper\onAfterAction
onAfterAction(Event $event)
Definition
closurewrapper.php:31
Bitrix\Main\Engine\ActionFilter\ClosureWrapper\__construct
__construct(Closure $closure)
Definition
closurewrapper.php:20
Bitrix\Main\Engine\ActionFilter\ClosureWrapper\onBeforeAction
onBeforeAction(Event $event)
Definition
closurewrapper.php:26
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Main\Engine\ActionFilter
Definition
authentication.php:4
modules
main
lib
engine
actionfilter
closurewrapper.php
Создано системой
1.10.0