-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.php
More file actions
38 lines (30 loc) · 838 Bytes
/
controller.php
File metadata and controls
38 lines (30 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace Concrete\Package\OverrideExample;
defined('C5_EXECUTE') or die(_("Access Denied."));
use Core;
use Concrete\Core\Package\Package;
use Concrete\Package\OverrideExample\Src\PackageServiceProvider;
class Controller extends Package
{
protected $pkgHandle = 'override_example';
protected $appVersionRequired = '5.7';
protected $pkgVersion = '0.0.1';
public function getPackageName()
{
return t("Override example");
}
public function getPackageDescription()
{
return t("This package overrides URL and changes inputs to button tags.");
}
public function install()
{
parent::install();
}
public function on_start()
{
$app = Core::getFacadeApplication();
$sp = new PackageServiceProvider($app);
$sp->register();
}
}