C:\xampp\htdocs\landing\wp-content\plugins\better-wp-security\core\container.php


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
<?php

namespace iThemesSecurity;

use 
ITSEC_Lib_Upgrader;
use 
Pimple\Container;
use 
wpdb;

return static function ( 
Container $c ) {
    
$cwpdb::class ] = static function () {
        return 
$GLOBALS['wpdb'];
    };

    
$cITSEC_Lib_Upgrader::class ] = static function () {
        return new 
ITSEC_Lib_Upgrader();
    };

    
$cActor\Multi_Actor_Factory::class ] = static function ( Container $c ) {
        return new 
Actor\Multi_Actor_Factory( ...$c['actor.factories'] );
    };

    
$c['actor.factories'] = static function () {
        return [
            new 
Actor\User_Factory(),
            new 
Actor\Lockout_Module_Factory(),
        ];
    };

    
$c['ban-hosts.sources'] = static function () {
        return [];
    };

    
$c['ban-hosts.repositories'] = static function () {
        return [];
    };

    
$cBan_Hosts\Multi_Repository::class ] = static function ( Container $c ) {
        return new 
Ban_Hosts\Multi_Repository(
            ...
array_map( [ $c'offsetGet' ], $c['ban-hosts.repositories'] )
        );
    };

    
$cBan_Hosts\Source::class ] = static function ( Container $c ) {
        return new 
Ban_Hosts\Chain_Source(
            ...
array_map( [ $c'offsetGet' ], $c['ban-hosts.repositories'] ),
            ...
array_map( [ $c'offsetGet' ], $c['ban-hosts.sources'] )
        );
    };

    
$cBan_Hosts\REST::class ] = static function ( Container $c ) {
        return new 
Ban_Hosts\REST(
            
$cBan_Hosts\Multi_Repository::class ],
            
$cActor\Multi_Actor_Factory::class ]
        );
    };

};
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586