/
Manager.php
40 lines (30 loc) · 921 Bytes
/
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
<?php
namespace Concrete\Core\Site\Type\Controller;
use Concrete\Core\Application\Application;
use Concrete\Core\Support\Manager as CoreManager;
class Manager extends CoreManager
{
protected $standardController = StandardController::class;
/**
* @param mixed $standardController
*/
public function setStandardController($standardController)
{
$this->standardController = $standardController;
}
protected function getStandardController()
{
return $this->app->make($this->standardController);
}
public function driver($driver = null)
{
if (!isset($this->customCreators[$driver]) && !isset($this->drivers[$driver])) {
return $this->getStandardController();
}
return parent::driver($driver);
}
public function __construct(Application $application)
{
parent::__construct($application);
}
}