From 0d58a907e52918148b6eca16c450d0e4ef730b5a Mon Sep 17 00:00:00 2001 From: Anton Terekhov Date: Wed, 21 Nov 2012 15:09:13 +0400 Subject: [PATCH] Refuse cloning of CliController --- app/CliController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/CliController.php b/app/CliController.php index 9b25702..768a69e 100644 --- a/app/CliController.php +++ b/app/CliController.php @@ -28,6 +28,13 @@ class CliController } /** + * Refuse cloning + */ + private function __clone() + { + } + + /** * @static * @return CliController */ @@ -58,7 +65,8 @@ class CliController echo $profile; } } - } catch (Exception $e) { + } + catch (Exception $e) { $code = $e->getCode(); if ($e instanceof ErrorException) { $code = $e->getSeverity();