mirror of
https://github.com/flarum/core.git
synced 2025-10-10 22:44:25 +02:00
Rework public API based on events
This commit is contained in:
34
src/Events/BuildClientView.php
Normal file
34
src/Events/BuildClientView.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php namespace Flarum\Events;
|
||||
|
||||
use Flarum\Support\ClientAction;
|
||||
use Flarum\Support\ClientView;
|
||||
|
||||
class BuildClientView
|
||||
{
|
||||
/**
|
||||
* @var ClientAction
|
||||
*/
|
||||
protected $action;
|
||||
|
||||
/**
|
||||
* @var ClientView
|
||||
*/
|
||||
protected $view;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $keys;
|
||||
|
||||
/**
|
||||
* @param ClientAction $action
|
||||
* @param ClientView $view
|
||||
* @param array $keys
|
||||
*/
|
||||
public function __construct($action, $view, &$keys)
|
||||
{
|
||||
$this->action = $action;
|
||||
$this->view = $view;
|
||||
$this->keys = &$keys;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user