use ::class for callables
This commit is contained in:
parent
5e58eebbfc
commit
3e9d931965
3 changed files with 14 additions and 14 deletions
|
@ -18,7 +18,7 @@ dcCore::app()->url->register(
|
|||
'comListe',
|
||||
'comListe',
|
||||
'^comListe(?:/(.+))?$',
|
||||
['urlcomListe','comListe']
|
||||
[urlcomListe::class,'comListe']
|
||||
);
|
||||
|
||||
class urlcomListe extends dcUrlHandlers
|
||||
|
|
24
_public.php
24
_public.php
|
@ -20,19 +20,19 @@ if (!dcCore::app()->blog->settings->get(basename(__DIR__))->get('enable')) {
|
|||
|
||||
require __DIR__ . '/_widgets.php';
|
||||
|
||||
dcCore::app()->tpl->addValue('ComListeURL', ['tplComListe','comListeURL']);
|
||||
dcCore::app()->tpl->addValue('ComListePageTitle', ['tplComListe','comListePageTitle']);
|
||||
dcCore::app()->tpl->addValue('ComListeNbComments', ['tplComListe','comListeNbComments']);
|
||||
dcCore::app()->tpl->addValue('ComListeNbCommentsPerPage', ['tplComListe','comListeNbCommentsPerPage']);
|
||||
dcCore::app()->tpl->addBlock('ComListeCommentsEntries', ['tplComListe','comListeCommentsEntries']);
|
||||
dcCore::app()->tpl->addValue('ComListePaginationLinks', ['tplComListe','comListePaginationLinks']);
|
||||
dcCore::app()->tpl->addValue('ComListeOpenPostTitle', ['tplComListe','comListeOpenPostTitle']);
|
||||
dcCore::app()->tpl->addValue('ComListeURL', [tplComListe::class,'comListeURL']);
|
||||
dcCore::app()->tpl->addValue('ComListePageTitle', [tplComListe::class,'comListePageTitle']);
|
||||
dcCore::app()->tpl->addValue('ComListeNbComments', [tplComListe::class,'comListeNbComments']);
|
||||
dcCore::app()->tpl->addValue('ComListeNbCommentsPerPage', [tplComListe::class,'comListeNbCommentsPerPage']);
|
||||
dcCore::app()->tpl->addBlock('ComListeCommentsEntries', [tplComListe::class,'comListeCommentsEntries']);
|
||||
dcCore::app()->tpl->addValue('ComListePaginationLinks', [tplComListe::class,'comListePaginationLinks']);
|
||||
dcCore::app()->tpl->addValue('ComListeOpenPostTitle', [tplComListe::class,'comListeOpenPostTitle']);
|
||||
|
||||
dcCore::app()->tpl->addBlock('ComListePagination', ['tplComListe','comListePagination']);
|
||||
dcCore::app()->tpl->addValue('ComListePaginationCounter', ['tplComListe','comListePaginationCounter']);
|
||||
dcCore::app()->tpl->addValue('ComListePaginationCurrent', ['tplComListe','comListePaginationCurrent']);
|
||||
dcCore::app()->tpl->addBlock('ComListePaginationIf', ['tplComListe','comListePaginationIf']);
|
||||
dcCore::app()->tpl->addValue('ComListePaginationURL', ['tplComListe','comListePaginationURL']);
|
||||
dcCore::app()->tpl->addBlock('ComListePagination', [tplComListe::class,'comListePagination']);
|
||||
dcCore::app()->tpl->addValue('ComListePaginationCounter', [tplComListe::class,'comListePaginationCounter']);
|
||||
dcCore::app()->tpl->addValue('ComListePaginationCurrent', [tplComListe::class,'comListePaginationCurrent']);
|
||||
dcCore::app()->tpl->addBlock('ComListePaginationIf', [tplComListe::class,'comListePaginationIf']);
|
||||
dcCore::app()->tpl->addValue('ComListePaginationURL', [tplComListe::class,'comListePaginationURL']);
|
||||
|
||||
dcCore::app()->addBehaviors([
|
||||
'publicBreadcrumb' => function ($context, $separator) {
|
||||
|
|
|
@ -14,7 +14,7 @@ if (!defined('DC_RC_PATH')) {
|
|||
return null;
|
||||
}
|
||||
|
||||
dcCore::app()->addBehavior('initWidgets', ['comListeWidget','initWidget']);
|
||||
dcCore::app()->addBehavior('initWidgets', [comListeWidget::class,'initWidget']);
|
||||
|
||||
class comListeWidget
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue