mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 08:53:00 +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
|
class Compat implements ExtenderInterface
|
||||||
{
|
{
|
||||||
protected $callback;
|
private $callback;
|
||||||
|
|
||||||
public function __construct($callback)
|
public function __construct($callback)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ use Illuminate\Events\Dispatcher;
|
||||||
|
|
||||||
class Formatter implements ExtenderInterface, LifecycleInterface
|
class Formatter implements ExtenderInterface, LifecycleInterface
|
||||||
{
|
{
|
||||||
protected $callback;
|
private $callback;
|
||||||
|
|
||||||
public function configure($callback)
|
public function configure($callback)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,12 +25,12 @@ use Illuminate\Contracts\Container\Container;
|
||||||
|
|
||||||
class Frontend implements ExtenderInterface
|
class Frontend implements ExtenderInterface
|
||||||
{
|
{
|
||||||
protected $frontend;
|
private $frontend;
|
||||||
|
|
||||||
protected $css = [];
|
private $css = [];
|
||||||
protected $js;
|
private $js;
|
||||||
protected $routes = [];
|
private $routes = [];
|
||||||
protected $content = [];
|
private $content = [];
|
||||||
|
|
||||||
public function __construct(string $frontend)
|
public function __construct(string $frontend)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Illuminate\Contracts\Container\Container;
|
||||||
|
|
||||||
class Locales implements ExtenderInterface, LifecycleInterface
|
class Locales implements ExtenderInterface, LifecycleInterface
|
||||||
{
|
{
|
||||||
protected $directory;
|
private $directory;
|
||||||
|
|
||||||
public function __construct($directory)
|
public function __construct($directory)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,12 +14,12 @@ use Illuminate\Contracts\Container\Container;
|
||||||
|
|
||||||
class Middleware implements ExtenderInterface
|
class Middleware implements ExtenderInterface
|
||||||
{
|
{
|
||||||
protected $addMiddlewares = [];
|
private $addMiddlewares = [];
|
||||||
protected $removeMiddlewares = [];
|
private $removeMiddlewares = [];
|
||||||
protected $replaceMiddlewares = [];
|
private $replaceMiddlewares = [];
|
||||||
protected $insertBeforeMiddlewares = [];
|
private $insertBeforeMiddlewares = [];
|
||||||
protected $insertAfterMiddlewares = [];
|
private $insertAfterMiddlewares = [];
|
||||||
protected $frontend;
|
private $frontend;
|
||||||
|
|
||||||
public function __construct(string $frontend)
|
public function __construct(string $frontend)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,9 +16,9 @@ use Illuminate\Contracts\Container\Container;
|
||||||
|
|
||||||
class Routes implements ExtenderInterface
|
class Routes implements ExtenderInterface
|
||||||
{
|
{
|
||||||
protected $appName;
|
private $appName;
|
||||||
|
|
||||||
protected $routes = [];
|
private $routes = [];
|
||||||
|
|
||||||
public function __construct($appName)
|
public function __construct($appName)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user