-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontroller.php
executable file
·49 lines (40 loc) · 1.08 KB
/
controller.php
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
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @project: App Icon
*
* @author Fabian Bitter
* @copyright (C) 2016 Fabian Bitter (www.bitter.de)
* @version 1.2.1
*/
namespace Concrete\Package\AppIcon;
use Bitter\AppIcon\Provider\ServiceProvider;
use Concrete\Core\Package\Package;
class Controller extends Package
{
protected $pkgHandle = 'app_icon';
protected $pkgVersion = '2.7.1';
protected $appVersionRequired = '9.0.0';
protected $pkgAutoloaderRegistries = [
'src/Bitter/AppIcon' => 'Bitter\AppIcon',
];
public function getPackageDescription()
{
return t('Automatically create app icons and include them in your HTML code.');
}
public function getPackageName()
{
return t('App Icon');
}
public function on_start()
{
/** @var ServiceProvider $serviceProvider */
$serviceProvider = $this->app->make(ServiceProvider::class);
$serviceProvider->register();
}
public function install()
{
$pkg = parent::install();
$this->installContentFile("install.xml");
return $pkg;
}
}