The documentation you are viewing is for an older version of this component. Switch to the latest (v4) version.
Run the following command in your project root directory:
composer require dotkernel/dot-rbac-guard