Dependency Injection

For more complex access checking on routes, implement a service.
Inject your services into custom blocks.