mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 06:56:14 +08:00
Change Extenders properties to private (#1958)
This commit is contained in:
parent
3e8aae3cff
commit
77062dd833
|
@ -23,7 +23,7 @@ use Illuminate\Contracts\Container\Container;
|
|||
*/
|
||||
class Compat implements ExtenderInterface
|
||||
{
|
||||
protected $callback;
|
||||
private $callback;
|
||||
|
||||
public function __construct($callback)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ use Illuminate\Events\Dispatcher;
|
|||
|
||||
class Formatter implements ExtenderInterface, LifecycleInterface
|
||||
{
|
||||
protected $callback;
|
||||
private $callback;
|
||||
|
||||
public function configure($callback)
|
||||
{
|
||||
|
|
|
@ -25,12 +25,12 @@ use Illuminate\Contracts\Container\Container;
|
|||
|
||||
class Frontend implements ExtenderInterface
|
||||
{
|
||||
protected $frontend;
|
||||
private $frontend;
|
||||
|
||||
protected $css = [];
|
||||
protected $js;
|
||||
protected $routes = [];
|
||||
protected $content = [];
|
||||
private $css = [];
|
||||
private $js;
|
||||
private $routes = [];
|
||||
private $content = [];
|
||||
|
||||
public function __construct(string $frontend)
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ use Illuminate\Contracts\Container\Container;
|
|||
|
||||
class Locales implements ExtenderInterface, LifecycleInterface
|
||||
{
|
||||
protected $directory;
|
||||
private $directory;
|
||||
|
||||
public function __construct($directory)
|
||||
{
|
||||
|
|
|
@ -14,12 +14,12 @@ use Illuminate\Contracts\Container\Container;
|
|||
|
||||
class Middleware implements ExtenderInterface
|
||||
{
|
||||
protected $addMiddlewares = [];
|
||||
protected $removeMiddlewares = [];
|
||||
protected $replaceMiddlewares = [];
|
||||
protected $insertBeforeMiddlewares = [];
|
||||
protected $insertAfterMiddlewares = [];
|
||||
protected $frontend;
|
||||
private $addMiddlewares = [];
|
||||
private $removeMiddlewares = [];
|
||||
private $replaceMiddlewares = [];
|
||||
private $insertBeforeMiddlewares = [];
|
||||
private $insertAfterMiddlewares = [];
|
||||
private $frontend;
|
||||
|
||||
public function __construct(string $frontend)
|
||||
{
|
||||
|
|
|
@ -16,9 +16,9 @@ use Illuminate\Contracts\Container\Container;
|
|||
|
||||
class Routes implements ExtenderInterface
|
||||
{
|
||||
protected $appName;
|
||||
private $appName;
|
||||
|
||||
protected $routes = [];
|
||||
private $routes = [];
|
||||
|
||||
public function __construct($appName)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user