src/app/console/commands/HCPermissions.php
private function generateRolesAndPermissions()
    {
        if( empty($this->aclData) ) {
            $this->error('empty roles and permissions in "generateRolesAndPermissions" method');

            return;
        }

        foreach ( $this->aclData as $acl ) {
            $this->createPermissions($acl['acl']);
            $this->createRoles($acl['acl']);
        }

        $this->createRolesPermissions($this->aclData);
    }
private function generateRolesAndPermissions()
    {
        if( empty($this->aclData) ) {
            $this->error('empty roles and permissions in "generateRolesAndPermissions" method');

            return;
        }

        foreach ( $this->aclData as $acl ) {
            $this->createPermissions($acl['acl']);
            $this->createRoles($acl['acl']);
        }

        $this->createRolesPermissions($this->aclData);
    }
private function generateRolesAndPermissions ( ) { if ( empty ( $ this -> aclData ) ) { $ this -> error ( 'empty roles and permissions in "generateRolesAndPermissions" method' ) ; return ; } foreach ( $ this -> aclData as $ acl ) { $ this -> createPermissions ( $ acl [ 'acl' ] ) ; $ this -> createRoles ( $ acl [ 'acl' ] ) ; } $ this -> createRolesPermissions ( $ this -> aclData ) ; }
Create roles, permissions and roles_permissions
Create roles permissions and roles_permissions