-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathAppInterface.php
More file actions
105 lines (95 loc) · 1.94 KB
/
AppInterface.php
File metadata and controls
105 lines (95 loc) · 1.94 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/**
* This file is part of the PPI Framework.
*
* @copyright Copyright (c) 2012-2015 Paul Dragoonis <[email protected]>
* @license http://opensource.org/licenses/mit-license.php MIT
*
* @link http://www.ppi.io
*/
namespace PPI\Framework;
/**
* The PPI App interface.
*
* This class sets various app settings, and allows you to override classes used
* in the bootup process.
*
* @author Vítor Brandão <[email protected]>
*
* @api
*/
interface AppInterface extends \Serializable
{
/**
* Gets the name of the application.
*
* @return string The application name
*
* @api
*/
public function getName();
/**
* Gets the version of the application.
*
* @return string The application version
*
* @api
*/
public function getVersion();
/**
* Get the environment mode the application is in.
*
* @return string The current environment
*
* @api
*/
public function getEnvironment();
/**
* Checks if debug mode is enabled.
*
* @return bool true if debug mode is enabled, false otherwise
*
* @api
*/
public function isDebug();
/**
* Gets the application root dir.
*
* @return string The application root dir
*
* @api
*/
public function getRootDir();
/**
* Get the locator object.
*
* @return \Zend\ServiceManager\ServiceLocatorInterface
*
* @api
*/
public function getServiceManager();
/**
* Gets the cache directory.
*
* @return string The cache directory
*
* @api
*/
public function getCacheDir();
/**
* Gets the log directory.
*
* @return string The log directory
*
* @api
*/
public function getLogDir();
/**
* Gets the charset of the application.
*
* @return string The charset
*
* @api
*/
public function getCharset();
}