Class \Onion\Caching\Cache does not exist
/home/klingger/public_html/studiopl/vendor/Onion/DI/Factory.php
http://klingger.webstranky.net/~klingger/studiopl/public_html/ (GET)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
6 {7 private $services;89 private $class;1011 private $deps = array();1213 private $properties = array();1415 public function __construct(\Onion\DI\Container $services, $class, $deps = array(), $properties = array())16 {17 $this->services = $services;18 $this->class = $class;19 $this->deps = $deps;20 $this->properties = $properties;21 }2223 public function create()24 {25 $rc = new \ReflectionClass($this->class);2627 $deps = func_get_args();28 if (empty($deps) === true) {29 $deps = $this->deps;30 } else {31 $_deps = array_reverse((array) $this->deps);32 foreach ($_deps as $dep) {33 array_unshift($deps, $dep);34 }35 }
69 }707172 public function getService($name, $deps = null)73 {74 if (substr($name, 0, 8) === 'factory@') {75 $name = substr($name, 8);76 return $this->factory[$name];77 }7879 if (isset($this->objects[$name]) === false) {80 throw new \InvalidArgumentException('Service "'.$name.'" is not registered!');81 }8283 if (is_array($deps) === true) {84 return call_user_func_array(array($this->factory[$name], 'create'), $deps);85 }8687 if ($this->objects[$name] instanceof \Onion\DI\Factory) {88 $this->objects[$name] = $this->objects[$name]->create();89 }9091 return $this->objects[$name];92 }939495 public function serviceExists($name)96 {97 return isset($this->objects[$name]);98 }
array ( )
84 return call_user_func_array(array($this->factory[$name], 'create'), $deps);85 }8687 if ($this->objects[$name] instanceof \Onion\DI\Factory) {88 $this->objects[$name] = $this->objects[$name]->create();89 }9091 return $this->objects[$name];92 }939495 public function serviceExists($name)96 {97 return isset($this->objects[$name]);98 }99100101 public function __get($name)102 {103 return $this->getService($name);104 }105 }
array ( 0 => 'cache', )
15 private $language;1617 private $isAdminUrl = false;1819 private $cache;2021 public $assets;2223 public $commonAssets;2425 public $printAssets;2627 public $modulesLibs = array();2829 public function __construct($services)30 {31 $this->services = $services;32 $this->app = $services->app;3334 $this->cache = $services->cache;3536 spl_autoload_register(array($this, 'loader'));37 }383940 public function init()41 {42 $this->loadConfiguration();4344 // Nastavenie hlavičky pre IE
array ( 0 => 'cache', )
51 $arg = $this->services->getService($parts[0]);52 if (count($parts) > 1) {53 eval('$arg = $arg->'.$parts[1].';');54 }55 } elseif (substr($dep, 0, 8) === 'factory@') {56 $arg = $this->services->getService($dep);5758 } else {59 $arg = $dep;60 }61 $arguments[] = $arg;62 } else {63 $arguments[] = $dep;64 }65 }6667 if (method_exists($this->class, '__construct') === false) {68 $object = new $this->class;69 } else {70 $object = $rc->newInstanceArgs($arguments);71 }7273 foreach ($this->properties as $property => $value) {74 if ($dep instanceof ServiceBuilder) {75 $value = $value->create();7677 } elseif (is_string($value) === true) {78 if (isset($dep[0]) === true79 AND $dep[0] === '@') {80
array ( 0 => array ( 0 => 'object (Onion\\DI\\Container)', ), )
69 }707172 public function getService($name, $deps = null)73 {74 if (substr($name, 0, 8) === 'factory@') {75 $name = substr($name, 8);76 return $this->factory[$name];77 }7879 if (isset($this->objects[$name]) === false) {80 throw new \InvalidArgumentException('Service "'.$name.'" is not registered!');81 }8283 if (is_array($deps) === true) {84 return call_user_func_array(array($this->factory[$name], 'create'), $deps);85 }8687 if ($this->objects[$name] instanceof \Onion\DI\Factory) {88 $this->objects[$name] = $this->objects[$name]->create();89 }9091 return $this->objects[$name];92 }939495 public function serviceExists($name)96 {97 return isset($this->objects[$name]);98 }
array ( )
84 return call_user_func_array(array($this->factory[$name], 'create'), $deps);85 }8687 if ($this->objects[$name] instanceof \Onion\DI\Factory) {88 $this->objects[$name] = $this->objects[$name]->create();89 }9091 return $this->objects[$name];92 }939495 public function serviceExists($name)96 {97 return isset($this->objects[$name]);98 }99100101 public function __get($name)102 {103 return $this->getService($name);104 }105 }
array ( 0 => 'onionCMS', )
372 * Spustenie háčikov373 *374 * @param array zoznam háčikov375 * @return void376 */377 private function runHooks($hooks)378 {379 $hooks = \Onion\Utils\Arrays::getValue($this->configuration, $hooks);380381 if (empty($hooks) === true) {382 return;383 }384385 foreach ($hooks as $hook) {386 if (isset($hook[0]) === true387 AND is_object($hook[0]) === false) {388389 if ($hook[0][0] === '@') {390 $serviceName = substr($hook[0], 1);391 $hook[0] = $this->container->$serviceName;392393 } else {394 $hook[0] = new $hook[0]($this);395 }396 }397398 $parameters = (array) $this->parameters;399 if (empty($hook[2]) === false) {400 $parameters = array_merge((array) $hook[2], $parameters);401 }
array ( 0 => 'onionCMS', )
99 $this->container->addService('router', '\Onion\Application\Router', array($this->request, $routeFactory));100 $this->router = $this->container->getFactory('router')->create();101102 $this->configure($configuration);103 $this->container->addService('app', $this);104105 $escape = new \Onion\Templating\Escape;106 $this->container->addService('escape', $escape);107 $view = new \Onion\Templating\View($this->container);108 $this->container->addService('view', $view);109110 $this->container->addServices($configuration['system.services']);111 }112113 /**114 * Spustenie aplikácie115 */116 public function run()117 {118 $this->runHooks('system.hooks.onStart');119120 $this->currentRoute = $this->router->findCurrentRoute();121122 if ($this->currentRoute === null) {123 $this->notFound('Not found!');124 }125126 $this->startSession();127128 $this->runHooks('system.hooks.beforeCreateController');
array ( 0 => array ( 0 => array ( 0 => '@onionCMS', 1 => 'init', ), ), )
130 WWW_DIR.'/js/jquery.dropotron.min.js',131 WWW_DIR.'/js/skel.min.js',132 //WWW_DIR.'/js/respond.min.js',133 WWW_DIR.'/js/util.js',134 WWW_DIR.'/js/main.js',135 ),136 'less' => array(137 //WWW_DIR.'/less/main.less'138 ),139 'css' => array(140 WWW_DIR.'/scss/main.css',141 //WWW_DIR.'/scss/paginator.scss'142 )143 )144 )145 );146147 $app = new \Onion\Application($configuration);148149 $app->run();150 exit;
array ( )
1213 // absolute filesystem path to the libraries14 define('LIBS_DIR', realpath(WWW_DIR.'/../vendor'));1516 // absolute filesystem path to the web root17 define('ONION_DIR', LIBS_DIR.'/Onion');1819 // absolute filesystem path to the application root20 define('APP_DIR', WWW_DIR.'/../app');2122 // absolute filesystem path to the temporary files23 define('TEMP_DIR', realpath(WWW_DIR.'/../temp'));2425 // absolute filesystem path to the cache26 define('CACHE_DIR', realpath(WWW_DIR.'/../cache'));2728 define('ONIONCMS_DIR', realpath(ONION_DIR.'/../onionCMS'));2930 // load bootstrap file31 require ONIONCMS_DIR.'/bootstrap.php';
array ( 0 => '/home/klingger/public_html/studiopl/vendor/onionCMS/bootstrap.php', )
array ( 'HTTP_HOST' => 'klingger.webstranky.net', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_CACHE_CONTROL' => 'max-age=0', 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'HTTP_REFERER' => 'http://klingger.webstranky.net/~klingger/studiopl/', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE' => 'sk-SK,sk;q=0.9,cs;q=0.8,en-US;q=0.7,en;q=0.6', 'HTTP_COOKIE' => 'XDEBUG_SESSION=VSCODE', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.41 (Unix) PHP/7.4.1', 'SERVER_NAME' => 'klingger.webstranky.net', 'SERVER_ADDR' => '192.168.1.10', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '192.168.1.10', 'DOCUMENT_ROOT' => '/etc/httpd/docs/dummy-host.example.com', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/~klingger', 'CONTEXT_DOCUMENT_ROOT' => '/home/klingger/public_html', 'SERVER_ADMIN' => 'webmaster@dummy-host.example.com', 'SCRIPT_FILENAME' => '/home/klingger/public_html/studiopl/public_html/index.php', 'REMOTE_PORT' => '57594', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/~klingger/studiopl/public_html/', 'SCRIPT_NAME' => '/~klingger/studiopl/public_html/index.php', 'PHP_SELF' => '/~klingger/studiopl/public_html/index.php', 'REQUEST_TIME_FLOAT' => 1578815070.581, 'REQUEST_TIME' => 1578815070, )