We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

What does the "Role" in Acl?

What is the difference between these two versions?

$acl->addRole("Admin");
$acl->addRole(new Phalcon\Acl\Role("Admin"));


145.0k
Accepted
answer

Only one diffrence here that Role object can have description.