-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule.php
More file actions
executable file
·54 lines (41 loc) · 1.3 KB
/
Module.php
File metadata and controls
executable file
·54 lines (41 loc) · 1.3 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
<?php
/**
* KNUT7 K7F (http://framework.artphoweb.com/)
* KNUT7 K7F (tm) : Rapid Development Framework (http://framework.artphoweb.com/)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @link http://github.com/zebedeu/artphoweb for the canonical source repository
* @copyright (c) 2015. KNUT7 Software Technologies AO Inc. (http://www.artphoweb.com)
* @license http://framework.artphoweb.com/license/new-bsd New BSD License
* @author Marcio Zebedeu - [email protected]
* @version 1.0.2
*/
/**
* Created by PhpStorm.
* User: artphotografie
* Date: 08/12/16
* Time: 20:35
*/
namespace Module\apweb;
use Module\apweb\services\NovoTeste;
use Module\apweb\services\FactoryService;
class Module {
public function getConfig($name) {
// return require R . 'Config/Config.moduleTeste';
$c = new NovoTeste();
$d = new $name($c);
return $d;
}
public function getAutoloadConfig() {
return array(
'FWAP\Config\Autoloadfw' => array(
'namespaces' => array(
__NAMESPACE__ => __NAMESPACE__ . 'Module' . __NAMESPACE__,
),
),
);
}
}