/
Manager.php
55 lines (44 loc) · 1.37 KB
/
Manager.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
50
51
52
53
54
55
<?php
namespace Concrete\Core\Attribute\Category;
use Concrete\Core\Application\Application;
use Concrete\Core\Support\Manager as CoreManager;
defined('C5_EXECUTE') or die("Access Denied.");
class Manager extends CoreManager
{
public function createPageDriver()
{
return $this->createCollectionDriver();
}
public function createCollectionDriver()
{
return $this->app->make('Concrete\Core\Attribute\Category\PageCategory');
}
public function createFileDriver()
{
return $this->app->make('Concrete\Core\Attribute\Category\FileCategory');
}
public function createUserDriver()
{
return $this->app->make('Concrete\Core\Attribute\Category\UserCategory');
}
public function createSiteDriver()
{
return $this->app->make('Concrete\Core\Attribute\Category\SiteCategory');
}
public function createSiteTypeDriver()
{
return $this->app->make('Concrete\Core\Attribute\Category\SiteTypeCategory');
}
public function createEventDriver()
{
return $this->app->make('Concrete\Core\Attribute\Category\EventCategory');
}
public function createLegacyDriver()
{
return $this->app->make('Concrete\Core\Attribute\Category\LegacyCategory');
}
public function __construct(Application $application)
{
parent::__construct($application);
}
}