From 09f7141e42b3c8244aa0405b2fad030fd96c6eae Mon Sep 17 00:00:00 2001 From: Denys Bushulyak Date: Fri, 19 Aug 2016 13:41:43 +0300 Subject: [PATCH] remove exception handlers --- PhpRbac/src/PhpRbac/Rbac.php | 6 +---- .../exceptions/ConfigurationException.php | 25 ------------------- 2 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 PhpRbac/src/PhpRbac/exceptions/ConfigurationException.php diff --git a/PhpRbac/src/PhpRbac/Rbac.php b/PhpRbac/src/PhpRbac/Rbac.php index b79571f..6879eb8 100644 --- a/PhpRbac/src/PhpRbac/Rbac.php +++ b/PhpRbac/src/PhpRbac/Rbac.php @@ -24,11 +24,7 @@ public function __construct($config = '') $user = isset($config['user']) ? $config['user'] : "root"; $pass = isset($config['pass']) ? $config['pass'] : ""; $tablePrefix = isset($config['prefix']) ? $config['prefix'] : "phprbac_"; - $dbname = isset($config['db_name']) ? $config['db_name'] : false; - - if(!$dbname){ - throw new ConfigurationException("db_name",$config['db_name']); - } + $dbname = isset($config['db_name']) ? $config['db_name'] : false; } require_once 'core/lib/Jf.php'; diff --git a/PhpRbac/src/PhpRbac/exceptions/ConfigurationException.php b/PhpRbac/src/PhpRbac/exceptions/ConfigurationException.php deleted file mode 100644 index e5fdd85..0000000 --- a/PhpRbac/src/PhpRbac/exceptions/ConfigurationException.php +++ /dev/null @@ -1,25 +0,0 @@ -message = sprintf($this->message_template, $fieldName); - } -} \ No newline at end of file