Phalcon\Acl\Adapter\Mongo::__construct PHP Method

__construct() public method

Class constructor.
public __construct ( array $options )
$options array
    public function __construct($options)
    {
        if (!is_array($options)) {
            throw new Exception("Acl options must be an array");
        }
        if (!isset($options['db'])) {
            throw new Exception("Parameter 'db' is required");
        }
        if (!isset($options['roles'])) {
            throw new Exception("Parameter 'roles' is required");
        }
        if (!isset($options['resources'])) {
            throw new Exception("Parameter 'resources' is required");
        }
        if (!isset($options['resourcesAccesses'])) {
            throw new Exception("Parameter 'resourcesAccesses' is required");
        }
        if (!isset($options['accessList'])) {
            throw new Exception("Parameter 'accessList' is required");
        }
        $this->options = $options;
    }