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/Dependences.php
<?php namespace Teze\DI; /** * Class Dependences * @package Teze\DI * @deprecated */ class Dependences extends \Nette\Object { private $dependences; private $className; private $cache; private $used = array(); public function __construct(array $dependences, $className, \Nette\Caching\Cache $cache) { $this->className = $className; $this->cache = $cache; $this->dependences = $dependences; } public function get($key, $class = NULL) { if (!isset($this->dependences[$key])) { if (array_key_exists($key, $this->dependences)) throw new DependencyException('Dependency ' . $key . ' return NULL.'); $this->cache->remove(Container::DEPENDENCES); if (!$class) { $backtrace = debug_backtrace(); //$class = $backtrace[2]['class']; $class = $backtrace[0]['object']->className; $e = new DependencyException('Dependency ' . $key . ' for class ' . $class . ' does not exist.'); $e->setLine($backtrace[1]['line']); $e->setFile($backtrace[1]['file']); throw $e; } throw new DependencyException('Dependency ' . $key . ' for class ' . $class . ' does not exist.'); } $return = $this->dependences[$key]; $this->used[$key] = $key; return $return; } public function used($key){ $this->used[$key] = $key; } public function &__get($key) { $return = $this->get($key); return $return; } public function exist($key) { if (isset($this->dependences[$key])) return TRUE; } public function end() { if (count($this->dependences) == count($this->used)) return; foreach ($this->dependences as $key => $value) { if (!isset($this->used[$key])) { $this->cache->remove(Container::DEPENDENCES); $backtrace = debug_backtrace(); //trigger_error('Dependences ' . $key . ' for ' . $backtrace[1]['class'] . ' is not used.'); trigger_error('Dependences "' . $key . '" for ' . $backtrace[0]['object']->className . ' is not used.'); } } } }
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