TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
www
api
1
root
local_vendor
teze
teze
src
bc2
di
src
DI
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/local_vendor/teze/teze/src/bc2/di/src/DI/ClassBuilder.php
<?php /** * Copyright (c) Jan Pospisil (http://www.jan-pospisil.cz) */ namespace Teze\DI; /** * ClassBuilder * @author Jan Pospisil * @deprecated */ class ClassBuilder extends \Nette\Object implements IClassBuilder { private $classDir; public function setClassDir($classDir = NULL) { // if (!is_dir($classDir)) // throw new \Nette\FileNotFoundException('Directory ' . $classDir . ' does not exist.'); $this->classDir = $classDir; } public function buildClass($classFullName) { $split = explode('\\', $classFullName); $classNm = end($split); $nm = substr($classFullName, 0, -(strlen($classNm) + 1)); $factoryClass = $nm . '\\' . $classNm . 'Factory'; $interface = $nm . '\\' . 'I' . $classNm . 'Factory'; $prefix = $this->classDir . '/' . strtr($nm, array('\\' => '_')); // build interface $interfaceContent = strtr(file_get_contents(__DIR__ . '/InterfaceTemplate.phpt'), array('{$namespace}' => $nm, '{$name}' => 'I' . $classNm . 'Factory')); file_put_contents($prefix . '_I' . $classNm . 'Factory.php', $interfaceContent); // build factoryClass $factoryClassContent = strtr(file_get_contents(__DIR__ . '/FactoryClassTemplate.phpt'), array( '{$namespace}' => $nm, '{$name}' => $classNm . 'Factory', '{$interface}' => 'I' . $classNm . 'Factory', '{$mainInterface}' => '\Teze\DI\IFactory', '{$classFullName}' => $classFullName, )); file_put_contents($prefix . '_' . $classNm . 'Factory.php', $factoryClassContent); include_once $prefix . '_I' . $classNm . 'Factory.php'; include_once $prefix . '_' . $classNm . 'Factory.php'; return TRUE; } }
Crotin
Name
Size
Permissions
Modified
User/Group
Validator.php
2361
0644
2018-07-10 17:52:01
Unknown/Unknown
InterfaceTemplate.phpt
193
0644
2018-07-10 17:52:00
Unknown/Unknown
Dependences.php
2002
0644
2018-07-10 17:52:01
Unknown/Unknown
FactoryClassTemplate.phpt
499
0644
2018-07-10 17:52:01
Unknown/Unknown
IFactory.php
222
0644
2018-07-10 17:52:01
Unknown/Unknown
Config.php
326
0644
2018-07-10 17:52:01
Unknown/Unknown
DependencyBuilder.php
2868
0644
2018-07-10 17:52:01
Unknown/Unknown
ClassBuilder.php
1659
0644
2018-07-10 17:52:01
Unknown/Unknown
PresenterFactory.php
923
0644
2018-07-10 17:52:01
Unknown/Unknown
DependencyException.php
291
0644
2018-07-10 17:52:01
Unknown/Unknown
ServiceContainer.php
1611
0644
2018-07-10 17:52:01
Unknown/Unknown
Container.php
11690
0644
2018-07-10 17:52:01
Unknown/Unknown
CompileException.php
287
0644
2018-07-10 17:52:01
Unknown/Unknown
IClassBuilder.php
253
0644
2018-07-10 17:52:01
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin