Skip to content

Commit 37b746f

Browse files
author
Ivan Gavryshko
committed
MAGETWO-43265: An exception if try to get to the Web Wizard without writable file permissions
- added model wrapper over file_exists - fixed unit-tests
1 parent 52001cf commit 37b746f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\Setup\Model;
8+
9+
/**
10+
* Class ApplicationStatus
11+
* Returns status of application
12+
*/
13+
class ApplicationStatus
14+
{
15+
/**
16+
* Path to Magento config
17+
*/
18+
const PATH_TO_CONFIG = '/app/etc/config.php';
19+
20+
/**
21+
* Returns status of application
22+
*
23+
* @return bool
24+
*/
25+
public function isApplicationInstalled()
26+
{
27+
return file_exists(BP . self::PATH_TO_CONFIG);
28+
}
29+
}

0 commit comments

Comments
 (0)