Add root namespace for core events

This commit is contained in:
Art4 2024-12-30 23:12:10 +00:00
parent de4f621700
commit cb2721d1da
2 changed files with 8 additions and 8 deletions

View file

@ -14,13 +14,13 @@ namespace Friendica\Event;
*/
final class HtmlFilterEvent
{
public const HEAD = 'html.head';
public const HEAD = 'friendica.html.head';
public const FOOTER = 'html.footer';
public const FOOTER = 'friendica.html.footer';
public const PAGE_CONTENT_TOP = 'html.page_content_top';
public const PAGE_CONTENT_TOP = 'friendica.html.page_content_top';
public const PAGE_END = 'html.page_end';
public const PAGE_END = 'friendica.html.page_end';
private string $name;

View file

@ -17,10 +17,10 @@ class HtmlFilterEventTest extends TestCase
public static function getPublicConstants(): array
{
return [
[HtmlFilterEvent::HEAD, 'html.head'],
[HtmlFilterEvent::FOOTER, 'html.footer'],
[HtmlFilterEvent::PAGE_CONTENT_TOP, 'html.page_content_top'],
[HtmlFilterEvent::PAGE_END, 'html.page_end'],
[HtmlFilterEvent::HEAD, 'friendica.html.head'],
[HtmlFilterEvent::FOOTER, 'friendica.html.footer'],
[HtmlFilterEvent::PAGE_CONTENT_TOP, 'friendica.html.page_content_top'],
[HtmlFilterEvent::PAGE_END, 'friendica.html.page_end'],
];
}