23 lines
338 B
PHP
23 lines
338 B
PHP
|
<?php
|
||
|
namespace App\Event;
|
||
|
|
||
|
use App\View;
|
||
|
use Symfony\Component\EventDispatcher\Event;
|
||
|
|
||
|
class BuildView extends Event
|
||
|
{
|
||
|
const NAME = 'build-view';
|
||
|
|
||
|
protected $view;
|
||
|
|
||
|
public function __construct(View $view)
|
||
|
{
|
||
|
$this->view = $view;
|
||
|
}
|
||
|
|
||
|
public function getView(): View
|
||
|
{
|
||
|
return $this->view;
|
||
|
}
|
||
|
}
|