Exception
InvalidArgumentException
Locale `node` could not be parsed.
Source
Stack Trace
-
[exception]
/var/www/cookoo-li3/public_html/libraries/lithium/g11n/Locale.php: 116
111 $regex .= '(?:[_-](?P<script>[a-z]{4}))?'; 112 $regex .= '(?:[_-](?P<territory>[a-z]{2}))?'; 113 $regex .= '(?:[_-](?P<variant>[a-z]{5,}))?'; 114 115 if (!preg_match("/^{$regex}$/i", $locale, $matches)) { 116 throw new InvalidArgumentException("Locale `{$locale}` could not be parsed."); 117 } 118 return array_filter(array_intersect_key($matches, static::$_tags)); 119 } 120 121 /** -
lithium\g11n\Locale::cascade()
/var/www/cookoo-li3/public_html/libraries/lithium/g11n/Locale.php: 160
155 $locales[] = $locale; 156 157 if ($locale === 'root') { 158 return $locales; 159 } 160 $tags = static::decompose($locale); 161 162 while (count($tags) > 1) { 163 array_pop($tags); 164 $locales[] = static::compose($tags); 165 } -
lithium\g11n\Catalog::read()
/var/www/cookoo-li3/public_html/libraries/lithium/g11n/Catalog.php: 90
85 $id = strtok('.'); 86 87 $names = $name === true ? array_keys(static::$_configurations) : (array) $name; 88 $results = array(); 89 90 foreach (Locale::cascade($locale) as $cascaded) { 91 foreach ($names as $name) { 92 $adapter = static::adapter($name); 93 94 if ($result = $adapter->read($category, $cascaded, $options['scope'])) { 95 $results += $result; -
lithium\g11n\{closure} @ ?
/var/www/cookoo-li3/public_html/libraries/lithium/g11n/Message.php: 197
192 extract($params); 193 194 if (!isset($cache[$options['scope']][$locale])) { 195 $cache[$options['scope']][$locale] = Catalog::read( 196 true, 'message', $locale, $options 197 ); 198 } 199 $page = $cache[$options['scope']][$locale]; 200 201 if (!isset($page[$id])) { 202 return null; -
lithium\core\StaticObject::_filter()
/var/www/cookoo-li3/public_html/libraries/lithium/core/StaticObject.php: 119
114 protected static function _filter($method, $params, $callback, $filters = array()) { 115 $class = get_called_class(); 116 $hasNoFilters = empty(static::$_methodFilters[$class][$method]); 117 118 if ($hasNoFilters && !$filters && !Filters::hasApplied($class, $method)) { 119 return $callback($class, $params, null); 120 } 121 if (!isset(static::$_methodFilters[$class][$method])) { 122 static::$_methodFilters += array($class => array()); 123 static::$_methodFilters[$class][$method] = array(); 124 } -
lithium\g11n\Message::_translated()
/var/www/cookoo-li3/public_html/libraries/lithium/g11n/Message.php: 216
211 $key = $page['pluralRule']($count); 212 213 if (isset($page[$id][$key])) { 214 return $page[$id][$key]; 215 } 216 }); 217 } 218} 219 220 -
lithium\g11n\Message::translate()
/var/www/cookoo-li3/public_html/libraries/lithium/g11n/Message.php: 112
107 if ($options['noop']) { 108 $result = null; 109 } else { 110 $result = static::_translated($id, abs($options['count']), $options['locale'], array( 111 'scope' => $options['scope'] 112 )); 113 } 114 115 if ($result || $options['default']) { 116 return String::insert($result ?: $options['default'], $options); 117 } -
lithium\g11n\Message::aliases()::{closure} @ 146
/var/www/cookoo-li3/public_html/libraries/lithium/g11n/Message.php: 144
139 * @see lithium\net\http\Media::_handle() 140 * @return array Named aliases (`'t'` and `'tn'`) for translation functions. 141 */ 142 public static function aliases() { 143 $t = function($message, array $options = array()) { 144 return Message::translate($message, $options + array('default' => $message)); 145 }; 146 $tn = function($message1, $message2, $count, array $options = array()) { 147 return Message::translate($message1, $options + compact('count') + array( 148 'default' => $count == 1 ? $message1 : $message2 149 )); -
include
/var/www/cookoo-li3/public_html/app/resources/tmp/cache/templates/template_views_elements_social-links.html_222239_1325629126_423.php: 2
1 <div id="social-links" class="block"> 2 <h3 class="footer-header"> echo $h($t('Social Links')); </h3> 3 <a href="http://www.facebook.com/cookoo">Facebook</a> 4 <a href="http://www.facebook.com/cookoo">Vimeo</a> 5 <a href="http://www.facebook.com/cookoo">Youtube</a> 6 <a href="http://www.facebook.com/cookoo">Twitter</a> 7 <a href="http://www.facebook.com/cookoo">LinkedIn</a> -
lithium\template\view\adapter\File::render()
/var/www/cookoo-li3/public_html/libraries/lithium/template/view/adapter/File.php: 111
106 } elseif ($this->_view) { 107 extract((array) $this->_view->outputFilters, EXTR_OVERWRITE); 108 } 109 110 ob_start(); 111 include $template__; 112 return ob_get_clean(); 113 } 114 115 /** 116 * Returns a template file name -
lithium\template\{closure} @ ?
/var/www/cookoo-li3/public_html/libraries/lithium/template/View.php: 308
303 $_loader = $this->_loader; 304 $filters = $this->outputFilters; 305 $params = compact('step', 'params', 'options') + array('data' => $data + $filters); 306 $filter = function($self, $params) use (&$_renderer, &$_loader) { 307 $template = $_loader->template($params['step']['path'], $params['params']); 308 return $_renderer->render($template, $params['data'], $params['options']); 309 }; 310 $result = $this->_filter(__METHOD__, $params, $filter); 311 312 if (is_array($step['capture'])) { 313 switch (key($step['capture'])) { -
lithium\core\Object::_filter()
/var/www/cookoo-li3/public_html/libraries/lithium/core/Object.php: 238
233 */ 234 protected function _filter($method, $params, $callback, $filters = array()) { 235 list($class, $method) = explode('::', $method); 236 237 if (empty($this->_methodFilters[$method]) && empty($filters)) { 238 return $callback($this, $params, null); 239 } 240 241 $f = isset($this->_methodFilters[$method]) ? $this->_methodFilters[$method] : array(); 242 $data = array_merge($f, $filters, array($callback)); 243 return Filters::run($this, $params, compact('data', 'class', 'method')); -
lithium\template\View::_step()
/var/www/cookoo-li3/public_html/libraries/lithium/template/View.php: 310
305 $params = compact('step', 'params', 'options') + array('data' => $data + $filters); 306 $filter = function($self, $params) use (&$_renderer, &$_loader) { 307 $template = $_loader->template($params['step']['path'], $params['params']); 308 return $_renderer->render($template, $params['data'], $params['options']); 309 }; 310 $result = $this->_filter(__METHOD__, $params, $filter); 311 312 if (is_array($step['capture'])) { 313 switch (key($step['capture'])) { 314 case 'context': 315 $options['context'][current($step['capture'])] = $result; -
lithium\template\View::render()
/var/www/cookoo-li3/public_html/libraries/lithium/template/View.php: 272
267 $params[$name] = $value; 268 $result = $this->_step($step, $params, $data, $options); 269 } 270 continue; 271 } 272 $result = $this->_step((array) $step, $params, $data, $options); 273 } 274 return $result; 275 } 276 277 protected function _conditions($step, $params, $data, $options) { -
include
/var/www/cookoo-li3/public_html/app/resources/tmp/cache/templates/template_views_layouts_default.html_31711_1327616688_3227.php: 98
93 94 <!-- start Footer --> 95 <div id="Footer"> 96 echo $this->_view->render(array('element' => 'site-links')); 97 echo $this->_view->render(array('element' => 'latest-blog-posts')); 98 echo $this->_view->render(array('element' => 'social-links')); 99 </div> 100 <!-- end Footer --> 101 102 echo $this->html->script(array( 103 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', -
lithium\template\view\adapter\File::render()
/var/www/cookoo-li3/public_html/libraries/lithium/template/view/adapter/File.php: 111
106 } elseif ($this->_view) { 107 extract((array) $this->_view->outputFilters, EXTR_OVERWRITE); 108 } 109 110 ob_start(); 111 include $template__; 112 return ob_get_clean(); 113 } 114 115 /** 116 * Returns a template file name -
lithium\template\{closure} @ ?
/var/www/cookoo-li3/public_html/libraries/lithium/template/View.php: 308
303 $_loader = $this->_loader; 304 $filters = $this->outputFilters; 305 $params = compact('step', 'params', 'options') + array('data' => $data + $filters); 306 $filter = function($self, $params) use (&$_renderer, &$_loader) { 307 $template = $_loader->template($params['step']['path'], $params['params']); 308 return $_renderer->render($template, $params['data'], $params['options']); 309 }; 310 $result = $this->_filter(__METHOD__, $params, $filter); 311 312 if (is_array($step['capture'])) { 313 switch (key($step['capture'])) { -
lithium\core\Object::_filter()
/var/www/cookoo-li3/public_html/libraries/lithium/core/Object.php: 238
233 */ 234 protected function _filter($method, $params, $callback, $filters = array()) { 235 list($class, $method) = explode('::', $method); 236 237 if (empty($this->_methodFilters[$method]) && empty($filters)) { 238 return $callback($this, $params, null); 239 } 240 241 $f = isset($this->_methodFilters[$method]) ? $this->_methodFilters[$method] : array(); 242 $data = array_merge($f, $filters, array($callback)); 243 return Filters::run($this, $params, compact('data', 'class', 'method')); -
lithium\template\View::_step()
/var/www/cookoo-li3/public_html/libraries/lithium/template/View.php: 310
305 $params = compact('step', 'params', 'options') + array('data' => $data + $filters); 306 $filter = function($self, $params) use (&$_renderer, &$_loader) { 307 $template = $_loader->template($params['step']['path'], $params['params']); 308 return $_renderer->render($template, $params['data'], $params['options']); 309 }; 310 $result = $this->_filter(__METHOD__, $params, $filter); 311 312 if (is_array($step['capture'])) { 313 switch (key($step['capture'])) { 314 case 'context': 315 $options['context'][current($step['capture'])] = $result; -
lithium\template\View::render()
/var/www/cookoo-li3/public_html/libraries/lithium/template/View.php: 268
263 continue; 264 } 265 if ($step['multi'] && isset($options[$name])) { 266 foreach ((array) $options[$name] as $value) { 267 $params[$name] = $value; 268 $result = $this->_step($step, $params, $data, $options); 269 } 270 continue; 271 } 272 $result = $this->_step((array) $step, $params, $data, $options); 273 } -
lithium\net\http\{closure} @ ?
/var/www/cookoo-li3/public_html/libraries/lithium/net/http/Media.php: 729
724 case ($handler['template'] === false) && is_string($data): 725 return $data; 726 case $handler['view']: 727 unset($options['view']); 728 $instance = $self::view($handler, $data, $response, $options); 729 return $instance->render('all', (array) $data, $options); 730 default: 731 throw new MediaException("Could not interpret type settings for handler."); 732 } 733 }); 734 } -
lithium\util\collection\Filters::next()
/var/www/cookoo-li3/public_html/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 * -
/var/www/cookoo-li3/public_html/app/config/bootstrap/g11n.php::{closure} @ 112
/var/www/cookoo-li3/public_html/app/config/bootstrap/g11n.php: 115
110 * enables translation functions, i.e. `<?=$t("Translated content"); `. 111 */ 112Media::applyFilter('_handle', function($self, $params, $chain) { 113 $params['handler'] += array('outputFilters' => array()); 114 $params['handler']['outputFilters'] += Message::aliases(); 115 return $chain->next($self, $params, $chain); 116}); 117 118/** 119 * Integration with `Validator`. You can load locale dependent rules into the `Validator` 120 * by specifying them manually or retrieving them with the `Catalog` class. -
lithium\util\collection\Filters::next()
/var/www/cookoo-li3/public_html/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 * -
/var/www/cookoo-li3/public_html/app/config/bootstrap/g11n.php::{closure} @ 112
/var/www/cookoo-li3/public_html/app/config/bootstrap/g11n.php: 115
110 * enables translation functions, i.e. `<?=$t("Translated content"); `. 111 */ 112Media::applyFilter('_handle', function($self, $params, $chain) { 113 $params['handler'] += array('outputFilters' => array()); 114 $params['handler']['outputFilters'] += Message::aliases(); 115 return $chain->next($self, $params, $chain); 116}); 117 118/** 119 * Integration with `Validator`. You can load locale dependent rules into the `Validator` 120 * by specifying them manually or retrieving them with the `Catalog` class. -
lithium\util\collection\Filters::run()
/var/www/cookoo-li3/public_html/libraries/lithium/util/collection/Filters.php: 183
178 } 179 } 180 181 $chain = new Filters($options); 182 $next = $chain->rewind(); 183 return $next($class, $params, $chain); 184 } 185 186 /** 187 * Provides short-hand convenience syntax for filter chaining. 188 * -
lithium\core\StaticObject::_filter()
/var/www/cookoo-li3/public_html/libraries/lithium/core/StaticObject.php: 126
121 if (!isset(static::$_methodFilters[$class][$method])) { 122 static::$_methodFilters += array($class => array()); 123 static::$_methodFilters[$class][$method] = array(); 124 } 125 $data = array_merge(static::$_methodFilters[$class][$method], $filters, array($callback)); 126 return Filters::run($class, $params, compact('data', 'class', 'method')); 127 } 128 129 /** 130 * Gets and caches an array of the parent methods of a class. 131 * -
lithium\net\http\Media::_handle()
/var/www/cookoo-li3/public_html/libraries/lithium/net/http/Media.php: 733
728 $instance = $self::view($handler, $data, $response, $options); 729 return $instance->render('all', (array) $data, $options); 730 default: 731 throw new MediaException("Could not interpret type settings for handler."); 732 } 733 }); 734 } 735 736 /** 737 * Helper method for listing registered media types. Returns all types, or a single 738 * content type if a specific type is specified. -
lithium\core\StaticObject::invokeMethod()
/var/www/cookoo-li3/public_html/libraries/lithium/core/StaticObject.php: 75
70 case 1: 71 return static::$method($params[0]); 72 case 2: 73 return static::$method($params[0], $params[1]); 74 case 3: 75 return static::$method($params[0], $params[1], $params[2]); 76 case 4: 77 return static::$method($params[0], $params[1], $params[2], $params[3]); 78 case 5: 79 return static::$method($params[0], $params[1], $params[2], $params[3], $params[4]); 80 default: -
lithium\net\http\Media::render()::{closure} @ 567
/var/www/cookoo-li3/public_html/libraries/lithium/net/http/Media.php: 575
570 if (isset($types[$type])) { 571 $header = current((array) $types[$type]); 572 $header .= $response->encoding ? "; charset={$response->encoding}" : ''; 573 $response->headers('Content-type', $header); 574 } 575 $response->body($self::invokeMethod('_handle', array($handler, $data, $response))); 576 }); 577 } 578 579 /** 580 * Configures a template object instance, based on a media handler configuration. -
lithium\core\StaticObject::_filter()
/var/www/cookoo-li3/public_html/libraries/lithium/core/StaticObject.php: 119
114 protected static function _filter($method, $params, $callback, $filters = array()) { 115 $class = get_called_class(); 116 $hasNoFilters = empty(static::$_methodFilters[$class][$method]); 117 118 if ($hasNoFilters && !$filters && !Filters::hasApplied($class, $method)) { 119 return $callback($class, $params, null); 120 } 121 if (!isset(static::$_methodFilters[$class][$method])) { 122 static::$_methodFilters += array($class => array()); 123 static::$_methodFilters[$class][$method] = array(); 124 } -
lithium\net\http\Media::render()
/var/www/cookoo-li3/public_html/libraries/lithium/net/http/Media.php: 576
571 $header = current((array) $types[$type]); 572 $header .= $response->encoding ? "; charset={$response->encoding}" : ''; 573 $response->headers('Content-type', $header); 574 } 575 $response->body($self::invokeMethod('_handle', array($handler, $data, $response))); 576 }); 577 } 578 579 /** 580 * Configures a template object instance, based on a media handler configuration. 581 * -
lithium\action\Controller::render()
/var/www/cookoo-li3/public_html/libraries/lithium/action/Controller.php: 259
254 255 if ($options['head']) { 256 return; 257 } 258 $data = $this->_render['data']; 259 $media::render($this->response, $data, $options + array('request' => $this->request)); 260 } 261 262 /** 263 * Creates a redirect response by calling `render()` and providing a `'location'` parameter. 264 * -
app\controllers\PagesController::view()
/var/www/cookoo-li3/public_html/app/controllers/PagesController.php: 49
44 // this doesn't get any documents, it just checks access. the false "find_type" key is preventing a db query 45 //$document = $this->getDocument(array('action' => __METHOD__, 'request' => $this->request, 'find_type' => false)); 46 47 // getDocument() will return true or false depending on access rules. and it could redirect as well. 48 if(!$document) { 49 $this->render(array('template' => join('/', $path))); 50 } 51 } 52 53 /** 54 * Index listing method responsible for showing lists of pages with pagination options. -
lithium\core\Object::invokeMethod()
/var/www/cookoo-li3/public_html/libraries/lithium/core/Object.php: 165
160 * @return mixed Returns the result of the method call 161 */ 162 public function invokeMethod($method, $params = array()) { 163 switch (count($params)) { 164 case 0: 165 return $this->{$method}(); 166 case 1: 167 return $this->{$method}($params[0]); 168 case 2: 169 return $this->{$method}($params[0], $params[1]); 170 case 3: -
lithium\action\Controller::__invoke()::{closure} @ 163
/var/www/cookoo-li3/public_html/libraries/lithium/action/Controller.php: 178
173 if (!method_exists($self, $action)) { 174 throw new DispatchException("Action `{$action}` not found."); 175 } 176 $render['template'] = $render['template'] ?: $action; 177 178 if ($result = $self->invokeMethod($action, $args)) { 179 if (is_string($result)) { 180 $self->render(array('text' => $result)); 181 return $self->response; 182 } 183 if (is_array($result)) { -
lithium\core\Object::_filter()
/var/www/cookoo-li3/public_html/libraries/lithium/core/Object.php: 238
233 */ 234 protected function _filter($method, $params, $callback, $filters = array()) { 235 list($class, $method) = explode('::', $method); 236 237 if (empty($this->_methodFilters[$method]) && empty($filters)) { 238 return $callback($this, $params, null); 239 } 240 241 $f = isset($this->_methodFilters[$method]) ? $this->_methodFilters[$method] : array(); 242 $data = array_merge($f, $filters, array($callback)); 243 return Filters::run($this, $params, compact('data', 'class', 'method')); -
lithium\action\Controller::__invoke()
/var/www/cookoo-li3/public_html/libraries/lithium/action/Controller.php: 192
187 188 if (!$render['hasRendered'] && $render['auto']) { 189 $self->render(); 190 } 191 return $self->response; 192 }); 193 } 194 195 /** 196 * This method is used to pass along any data from the controller to the view and layout 197 * -
lithium\action\{closure} @ ?
/var/www/cookoo-li3/public_html/libraries/lithium/action/Dispatcher.php: 222
217 */ 218 protected static function _call($callable, $request, $params) { 219 $params = compact('callable', 'request', 'params'); 220 return static::_filter(__FUNCTION__, $params, function($self, $params) { 221 if (is_callable($callable = $params['callable'])) { 222 return $callable($params['request'], $params['params']); 223 } 224 throw new DispatchException('Result not callable.'); 225 }); 226 } 227} -
lithium\core\StaticObject::_filter()
/var/www/cookoo-li3/public_html/libraries/lithium/core/StaticObject.php: 119
114 protected static function _filter($method, $params, $callback, $filters = array()) { 115 $class = get_called_class(); 116 $hasNoFilters = empty(static::$_methodFilters[$class][$method]); 117 118 if ($hasNoFilters && !$filters && !Filters::hasApplied($class, $method)) { 119 return $callback($class, $params, null); 120 } 121 if (!isset(static::$_methodFilters[$class][$method])) { 122 static::$_methodFilters += array($class => array()); 123 static::$_methodFilters[$class][$method] = array(); 124 } -
lithium\action\Dispatcher::_call()
/var/www/cookoo-li3/public_html/libraries/lithium/action/Dispatcher.php: 225
220 return static::_filter(__FUNCTION__, $params, function($self, $params) { 221 if (is_callable($callable = $params['callable'])) { 222 return $callable($params['request'], $params['params']); 223 } 224 throw new DispatchException('Result not callable.'); 225 }); 226 } 227} 228 229 -
lithium\core\StaticObject::invokeMethod()
/var/www/cookoo-li3/public_html/libraries/lithium/core/StaticObject.php: 75
70 case 1: 71 return static::$method($params[0]); 72 case 2: 73 return static::$method($params[0], $params[1]); 74 case 3: 75 return static::$method($params[0], $params[1], $params[2]); 76 case 4: 77 return static::$method($params[0], $params[1], $params[2], $params[3]); 78 case 5: 79 return static::$method($params[0], $params[1], $params[2], $params[3], $params[4]); 80 default: -
lithium\action\Dispatcher::run()::{closure} @ 109
/var/www/cookoo-li3/public_html/libraries/lithium/action/Dispatcher.php: 122
117 118 if (!$params) { 119 throw new DispatchException('Could not route request.'); 120 } 121 $callable = $self::invokeMethod('_callable', array($result, $params, $options)); 122 return $self::invokeMethod('_call', array($callable, $result, $params)); 123 }); 124 } 125 126 /** 127 * Attempts to apply a set of formatting rules from `$_rules` to a `$params` array, where each -
lithium\util\collection\Filters::next()
/var/www/cookoo-li3/public_html/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 * -
/var/www/cookoo-li3/public_html/app/config/bootstrap/action.php::{closure} @ 42
/var/www/cookoo-li3/public_html/app/config/bootstrap/action.php: 52
47 continue; 48 } 49 $file = "{$config['path']}/config/routes.php"; 50 file_exists($file) ? include $file : null; 51 } 52 return $chain->next($self, $params, $chain); 53 }); 54 55 -
lithium\util\collection\Filters::next()
/var/www/cookoo-li3/public_html/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 * -
/var/www/cookoo-li3/public_html/app/config/bootstrap/cache.php::{closure} @ 48
/var/www/cookoo-li3/public_html/app/config/bootstrap/cache.php: 58
53 54 if ($cache = Cache::read('default', $key)) { 55 $cache = (array) $cache + Libraries::cache(); 56 Libraries::cache($cache); 57 } 58 $result = $chain->next($self, $params, $chain); 59 60 if ($cache != Libraries::cache()) { 61 Cache::write('default', $key, Libraries::cache(), '+1 day'); 62 } 63 return $result; -
lithium\util\collection\Filters::next()
/var/www/cookoo-li3/public_html/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 * -
lithium\core\ErrorHandler::apply()::{closure} @ 287
/var/www/cookoo-li3/public_html/libraries/lithium/core/ErrorHandler.php: 289
284 $wrap = static::$_exceptionHandler; 285 $_self = get_called_class(); 286 287 $filter = function($self, $params, $chain) use ($_self, $conditions, $handler, $wrap) { 288 try { 289 return $chain->next($self, $params, $chain); 290 } catch (Exception $e) { 291 if (!$_self::matches($e, $conditions)) { 292 throw $e; 293 } 294 return $handler($wrap($e, true), $params); -
lithium\util\collection\Filters::next()
/var/www/cookoo-li3/public_html/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 * -
/var/www/cookoo-li3/public_html/libraries/li3_docs/config/bootstrap.php::{closure} @ 26
/var/www/cookoo-li3/public_html/libraries/li3_docs/config/bootstrap.php: 32
27 $indexPath = Libraries::get(true, 'path') . '/resources/docs.index.json'; 28 29 if (file_exists($indexPath) && is_readable($indexPath)) { 30 Code::index((array) json_decode(file_get_contents($indexPath), true)); 31 } 32 $result = $chain->next($self, $params, $chain); 33 34 if (($index = Code::index()) && is_array($index) && is_writable(dirname($indexPath))) { 35 file_put_contents($indexPath, json_encode($index)); 36 } 37 return $result; -
lithium\util\collection\Filters::run()
/var/www/cookoo-li3/public_html/libraries/lithium/util/collection/Filters.php: 183
178 } 179 } 180 181 $chain = new Filters($options); 182 $next = $chain->rewind(); 183 return $next($class, $params, $chain); 184 } 185 186 /** 187 * Provides short-hand convenience syntax for filter chaining. 188 * -
lithium\core\StaticObject::_filter()
/var/www/cookoo-li3/public_html/libraries/lithium/core/StaticObject.php: 126
121 if (!isset(static::$_methodFilters[$class][$method])) { 122 static::$_methodFilters += array($class => array()); 123 static::$_methodFilters[$class][$method] = array(); 124 } 125 $data = array_merge(static::$_methodFilters[$class][$method], $filters, array($callback)); 126 return Filters::run($class, $params, compact('data', 'class', 'method')); 127 } 128 129 /** 130 * Gets and caches an array of the parent methods of a class. 131 * -
lithium\action\Dispatcher::run()
/var/www/cookoo-li3/public_html/libraries/lithium/action/Dispatcher.php: 123
118 if (!$params) { 119 throw new DispatchException('Could not route request.'); 120 } 121 $callable = $self::invokeMethod('_callable', array($result, $params, $options)); 122 return $self::invokeMethod('_call', array($callable, $result, $params)); 123 }); 124 } 125 126 /** 127 * Attempts to apply a set of formatting rules from `$_rules` to a `$params` array, where each 128 * formatting rule is applied if the key of the rule in `$_rules` is present and not empty in -
[main]
/var/www/cookoo-li3/public_html/app/webroot/index.php: 42
37 * @see lithium\action\Response 38 * @see lithium\action\Dispatcher 39 * @see lithium\net\http\Router 40 * @see lithium\action\Controller 41 */ 42 echo lithium\action\Dispatcher::run(new lithium\action\Request()); 43 44