public function __construct(FrontendInterface $frontend, array $options)
{
if (!isset($options['db']) || !$options['db'] instanceof DbAdapterInterface) {
throw new Exception('Parameter "db" is required and it must be an instance of Phalcon\\Acl\\AdapterInterface');
}
if (!isset($options['table']) || empty($options['table']) || !is_string($options['table'])) {
throw new Exception("Parameter 'table' is required and it must be a non empty string");
}
$this->db = $options['db'];
$this->table = $this->db->escapeIdentifier($options['table']);
unset($options['db'], $options['table']);
parent::__construct($frontend, $options);
}