Skip to content
Permalink
Browse files

New check for a valid callback.

  • Loading branch information...
andretefras committed Oct 23, 2016
1 parent 666a5fd commit 577c3dcb44879ad7736206c26556122110e3c3c7
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Routing/RouteBuilder.php
@@ -20,6 +20,7 @@
use Cake\Utility\Inflector;
use InvalidArgumentException;
/**
* Provides features for building routes inside scopes.
*
@@ -600,6 +601,7 @@ public function redirect($route, $url, array $options = [])
* If you have no parameters, this argument can be a callable.
* @param callable|null $callback The callback to invoke that builds the prefixed routes.
* @return void
* @throws \InvalidArgumentException If a valid callback is not passed
*/
public function prefix($name, $params = [], callable $callback = null)
{

0 comments on commit 577c3dc

Please sign in to comment.
You can’t perform that action at this time.