Call to undefined function Onion\Utils\create_function()
/mnt/devel/Atrium/atriumstudio/vendor/Onion/Utils/Strings.php
http://www.atriumarchitekti.loc/ (GET)
Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0
99 }100101 public static function splitByUpperChars($string)102 {103 return preg_split('/([A-Z]+[a-z]*)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);104 }105106 public static function fromCamelCase($str)107 {108 $str[0] = strtolower($str[0]);109 $func = create_function('$c', 'return "_".strtolower($c[1]);');110 return preg_replace_callback('/([A-Z])/', $func, $str);111 }112113 public static function toCamelCase($str, $capitalise_first_char = false)114 {115 if($capitalise_first_char) {116 $str[0] = strtoupper($str[0]);117 }118 $func = create_function('$c', 'return strtoupper($c[1]);');119 return preg_replace_callback('/_([a-z])/', $func, $str);120 }121122 public static function randomString($length = 9, $strength = 0)123 {124 $vowels = 'aeiouy';125 $consonants = 'bdghjmnpqrstvz';126 if ($strength & 1) {127 $consonants .= 'BDGHJLMNPQRSTVWXZ';128 }
113 'text/css' => 'css',114115 'text/csv' => 'csv',116117 'text/javascript' => 'js',118 'application/javascript' => 'js',119120 'text/plain' => 'txt',121 );122123124 public $xmlRootElement = 'root';125126127 public function __construct(Request $request)128 {129 $this->request = $request;130131 // Zatiaľ mime nastavovať na HTML, XMl robí veľa problémov132 if ($this->request->mime === 'application/xhtml+xml'133 OR $this->request->mime === 'application/xml') {134135 $this->responseType = 'text/html';136137 } else {138 if ($this->request->mime[0] === '*') {139 $this->responseType = 'text/html';140141 } else {142 $this->responseType = $this->request->mime;
array ( )
7475 /**76 * Konštruktor77 *78 * @param array associatívne pole s nastaveniami79 * @return void80 */81 public function __construct($configuration)82 {83 foreach ($configuration['php'] as $directive => $value) {84 ini_set($directive, $value);85 }8687 spl_autoload_register(array($this, 'loader'));8889 $this->container = new \Onion\DI\Container;90 $this->container->addService('services', $this->container);9192 $this->request = new \Onion\Application\Request;93 $this->response = new \Onion\Application\Response($this->request);9495 $this->container->addService('request', $this->request);96 $this->container->addService('response', $this->response);9798 $routeFactory = new \Onion\DI\Factory($this->container, '\Onion\Application\Router\Route');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);
array ( )
130 WWW_DIR.'/js/vendor/knockout-3.3.0.min.js',131 WWW_DIR.'/js/vendor/swiper.jquery.min.js',132 WWW_DIR.'/js/vendor/cookie.js',133 WWW_DIR.'/js/vendor/scroll-top.js',134 ),135 'less' => array(136 )137 ),138 'after' => array(139 'js' => array(140 WWW_DIR.'/js/main.js',141 ),142 'less' => array(143 WWW_DIR.'/less/main.less'144 )145 )146 )147 );148149 $app = new \Onion\Application($configuration);150151 $app->run();152 exit;
array ( )
13 // 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 if ($_SERVER["SERVER_ADDR"] === "127.0.0.1") {32 require ONIONCMS_DIR.'/bootstrap.dev.php';33 } else {34 require ONIONCMS_DIR.'/bootstrap.php';35 }
array ( 0 => '/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/bootstrap.dev.php', )
array ( 'HTTP_HOST' => 'www.atriumarchitekti.loc', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_COOKIE' => 'consent_cookie=%7B%22preferences%22%3Atrue%2C%22statistics%22%3Atrue%2C%22marketing%22%3Atrue%2C%22functionality%22%3Atrue%7D; gtm_atrium=%7B%22security_storage%22%3A%22granted%22%2C%22functionality_storage%22%3A%22granted%22%2C%22personalization_storage%22%3A%22granted%22%2C%22analytics_storage%22%3A%22granted%22%2C%22ad_user_data%22%3A%22granted%22%2C%22ad_personalization%22%3A%22granted%22%2C%22ad_storage%22%3A%22granted%22%7D; language=sk', 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1', 'HTTP_PRIORITY' => 'u=0, i', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.62 (Debian) Server at www.atriumarchitekti.loc Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.62 (Debian)', 'SERVER_NAME' => 'www.atriumarchitekti.loc', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '127.0.0.1', 'DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root', 'SERVER_ADMIN' => 'webmaster@localhost', 'SCRIPT_FILENAME' => '/mnt/devel/Atrium/atriumstudio/www_root/index.php', 'REMOTE_PORT' => '54178', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1743890317.225015, 'REQUEST_TIME' => 1743890317, )