Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class SystemController extends Controller |
||
13 | { |
||
14 | public function index() |
||
17 | } |
||
18 | |||
19 | public function install(Epesi $epesi) |
||
20 | { |
||
21 | if (SystemCore::isInstalled()) return redirect('home'); |
||
22 | |||
23 | $epesi->title = config('epesi.app.title') . ' > ' . __('Installation'); |
||
24 | |||
25 | $epesi->initLayout('Centered'); |
||
26 | |||
27 | $epesi->layout->set('logo', url('logo')); |
||
28 | $epesi->layout->template->setHTML('copyright', config('epesi.app.copyright')); |
||
29 | |||
30 | $epesi->add(new SystemInstallWizard()); |
||
31 | |||
32 | return $epesi->response(); |
||
33 | } |
||
34 | |||
35 | public function home() |
||
36 | { |
||
37 | return redirect(HomePageCommon::getUserHomePagePath()); |
||
38 | } |
||
39 | |||
40 | public function logo() |
||
47 | } |
||
48 | } |
||
49 |