Browse Source

Refuse cloning of CliController

master
Anton Terekhov 12 years ago
parent
commit
0d58a907e5
  1. 10
      app/CliController.php

10
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();

Loading…
Cancel
Save