1 | <?php |
||
8 | class ModernAdapter implements Adapter |
||
9 | { |
||
10 | |||
11 | /** @var \Concrete\Core\Application\Application */ |
||
12 | protected static $app; |
||
13 | |||
14 | /** @var \Buttress\Concrete\Locator\Site $site */ |
||
15 | protected $site; |
||
16 | |||
17 | /** @var \Buttress\Concrete\Console\Console */ |
||
18 | protected $console; |
||
19 | |||
20 | public function __construct(Site $site, Console $console) |
||
25 | |||
26 | /** |
||
27 | * Get the attached Application object |
||
28 | * @return \Concrete\Core\Application\Application |
||
29 | */ |
||
30 | public function getApplication() |
||
34 | |||
35 | /** |
||
36 | * Attach to a modern concrete5 site |
||
37 | * @return void |
||
38 | */ |
||
39 | public function attach() |
||
46 | |||
47 | /** |
||
48 | * Resolve the application object from a concrete5 site |
||
49 | * @return \Concrete\Core\Application\Application |
||
50 | */ |
||
51 | private function resolveApplication() |
||
79 | } |
||
80 |