72 lines
1.5 KiB
PHP
Executable File
72 lines
1.5 KiB
PHP
Executable File
<?php
|
|
/*
|
|
Crispage CMS
|
|
crispycat <the@crispy.cat>
|
|
https://crispy.cat/software/crispage
|
|
|
|
Crispage is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
*/
|
|
|
|
namespace Crispage\Extensions;
|
|
|
|
defined("ROOT") or die();
|
|
|
|
class CoreExtensions {
|
|
public static function get(): array {
|
|
return [
|
|
/*
|
|
new Extension(
|
|
id, version, package,
|
|
classname, type, data
|
|
),
|
|
*/
|
|
|
|
new Extension(
|
|
"crispage.core", VERSION, "crispage.core",
|
|
"crispage.core", "package", []
|
|
),
|
|
|
|
// Actions
|
|
|
|
new Extension(
|
|
"crispage.actions.default", VERSION, "crispage.core",
|
|
"\\Crispage\\Actions\\DefaultAction",
|
|
"action", []
|
|
),
|
|
|
|
|
|
// Components
|
|
new Extension(
|
|
"crispage.components.default", VERSION, "crispage.core",
|
|
"\\Crispage\\Components\\DefaultComponent",
|
|
"component", ["is_module" => true]
|
|
),
|
|
|
|
|
|
// Plugins
|
|
new Extension(
|
|
"crispage.plugins.default", VERSION, "crispage.core",
|
|
"\\Crispage\\Plugins\\DefaultPluginRunnable",
|
|
"component", []
|
|
),
|
|
|
|
|
|
// Templates
|
|
new Extension(
|
|
"crispage.templates.default", VERSION, "crispage.core",
|
|
"default", "template", []
|
|
),
|
|
|
|
// Translations
|
|
new Extension(
|
|
"crispage.translations.en_us.default", VERSION, "crispage.core",
|
|
"en-US_default", "translation", []
|
|
)
|
|
];
|
|
}
|
|
}
|
|
?>
|