PluginProbe
User Access Manager / 2.1.4
User Access Manager v2.1.4
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
user-access-manager / src / Cache / CacheProviderFactory.php

CacheProviderFactory.php in User Access Manager 2.1.4, at src/Cache/CacheProviderFactory.php

94 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * CacheProviderFactory.php
4 *
5 * The CacheProviderFactory class file.
6 *
7 * PHP versions 5
8 *
9 * @author Alexander Schneider <alexanderschneider85@gmail.com>
10 * @copyright 2008-2017 Alexander Schneider
11 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
12 * @version SVN: $id$
13 * @link http://wordpress.org/extend/plugins/user-access-manager/
14 */
15 namespace UserAccessManager\Cache;
16
17 use UserAccessManager\Config\ConfigFactory;
18 use UserAccessManager\Config\ConfigParameterFactory;
19 use UserAccessManager\Util\Util;
20 use UserAccessManager\Wrapper\Php;
21 use UserAccessManager\Wrapper\Wordpress;
22
23 /**
24 * Class CacheProviderFactory
25 *
26 * @package UserAccessManager\Cache
27 */
28 class CacheProviderFactory
29 {
30 /**
31 * @var Php
32 */
33 private $php;
34
35 /**
36 * @var Wordpress
37 */
38 private $wordpress;
39
40 /**
41 * @var Util
42 */
43 private $util;
44
45 /**
46 * @var ConfigFactory
47 */
48 private $configFactory;
49
50 /**
51 * @var ConfigParameterFactory
52 */
53 private $configParameterFactory;
54
55 /**
56 * CacheProviderFactory constructor.
57 *
58 * @param Php $php
59 * @param Wordpress $wordpress
60 * @param Util $util
61 * @param ConfigFactory $configFactory
62 * @param ConfigParameterFactory $configParameterFactory
63 */
64 public function __construct(
65 Php $php,
66 Wordpress $wordpress,
67 Util $util,
68 ConfigFactory $configFactory,
69 ConfigParameterFactory $configParameterFactory
70 ) {
71 $this->php = $php;
72 $this->wordpress = $wordpress;
73 $this->util = $util;
74 $this->configFactory = $configFactory;
75 $this->configParameterFactory = $configParameterFactory;
76 }
77
78 /**
79 * Creates a FileSystemCacheProvider object.
80 *
81 * @return FileSystemCacheProvider
82 */
83 public function createFileSystemCacheProvider()
84 {
85 return new FileSystemCacheProvider(
86 $this->php,
87 $this->wordpress,
88 $this->util,
89 $this->configFactory,
90 $this->configParameterFactory
91 );
92 }
93 }
94