getCollections() public method

public getCollections ( ) : ApiCollection[]
return PhalconRest\Api\ApiCollection[]
 public function run(Api $api, DiInterface $di, Config $config)
 {
     /** @var \PhalconApi\Acl\MountingEnabledAdapterInterface $acl */
     $acl = $di->get(Services::ACL);
     $unauthorizedRole = new Acl\Role(AclRoles::UNAUTHORIZED);
     $authorizedRole = new Acl\Role(AclRoles::AUTHORIZED);
     $acl->addRole($unauthorizedRole);
     $acl->addRole($authorizedRole);
     $acl->addRole(new Acl\Role(AclRoles::ADMINISTRATOR), $authorizedRole);
     $acl->addRole(new Acl\Role(AclRoles::MANAGER), $authorizedRole);
     $acl->addRole(new Acl\Role(AclRoles::USER), $authorizedRole);
     $acl->mountMany($api->getCollections());
 }