1 <?php
2
3 /* --------------------------------------------------------------
4 EnvCategoryServiceSettings.inc.php 2015-12-07
5 Gambio GmbH
6 http://www.gambio.de
7 Copyright (c) 2015 Gambio GmbH
8 Released under the GNU General Public License (Version 2)
9 [http://www.gnu.org/licenses/gpl-2.0.html]
10 --------------------------------------------------------------
11 */
12
13 /**
14 * Class EnvCategoryServiceSettings
15 *
16 * This class contains the file system path to the image directory by using specific constants which are defined in
17 * the config. It is used by the factory to build the proper service environment.
18 * By encapsulating this dependency the code becomes more explicit and testable.
19 *
20 * @category System
21 * @package Category
22 * @subpackage Entities
23 */
24 class EnvCategoryServiceSettings implements CategoryServiceSettingsInterface
25 {
26
27 /**
28 * Returns the path to image directory.
29 *
30 * @return string
31 */
32 public function getImagesDirPath()
33 {
34 $path = DIR_FS_CATALOG . DIR_WS_IMAGES;
35
36 return $path;
37 }
38 }