From 34452f5f08413c98db0cc8829719c5ab83240aa6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 2 Oct 2011 23:39:26 -0500 Subject: [PATCH] minor refactoring. --- laravel/routing/destination.php | 13 +++++++++++++ laravel/routing/route.php | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 laravel/routing/destination.php diff --git a/laravel/routing/destination.php b/laravel/routing/destination.php new file mode 100644 index 00000000..69338180 --- /dev/null +++ b/laravel/routing/destination.php @@ -0,0 +1,13 @@ +callback instanceof \Closure and ! is_array($this->callback) and ! is_string($this->callback)) + if ( ! $this->callback instanceof Closure and ! is_array($this->callback) and ! is_string($this->callback)) { throw new \Exception('Invalid route defined for URI ['.$this->key.']'); }