1 | <?php |
||
7 | abstract class ModernAdapter implements Adapter |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Attach to a modern concrete5 site |
||
12 | * @param string $path |
||
13 | * @return \Buttress\ConcreteClient\Connection\Connection $connection |
||
14 | */ |
||
15 | 8 | public function attach($path) |
|
22 | |||
23 | /** |
||
24 | * Get the connection to connect with |
||
25 | * @return \Buttress\ConcreteClient\Connection\ModernConnection |
||
26 | */ |
||
27 | abstract protected function createConnection(); |
||
28 | |||
29 | /** |
||
30 | * Resolve the application object from a concrete5 site |
||
31 | * @param string $path |
||
32 | * @return \Concrete\Core\Application\Application |
||
33 | */ |
||
34 | 8 | private function resolveApplication($path) |
|
50 | |||
51 | /** |
||
52 | * @param $path |
||
53 | */ |
||
54 | 8 | protected function defineConstants($path) |
|
63 | |||
64 | /** |
||
65 | * @param $path |
||
66 | */ |
||
67 | 8 | protected function registerAutoload($path) |
|
72 | |||
73 | /** |
||
74 | * @param $path |
||
75 | * @return \Concrete\Core\Application\Application |
||
76 | */ |
||
77 | 8 | protected function getApplicationInstance($path) |
|
81 | |||
82 | /** |
||
83 | * @param $cms |
||
84 | */ |
||
85 | 8 | protected function bootApplication(Application $cms) |
|
92 | } |
||
93 |