Skip to content

Instantly share code, notes, and snippets.

@cmcintosh
Created November 30, 2019 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcintosh/43c1c962e66d24e27da8ff56d3c71ccc to your computer and use it in GitHub Desktop.
Save cmcintosh/43c1c962e66d24e27da8ff56d3c71ccc to your computer and use it in GitHub Desktop.
<?php
class TempleOfDoomAccessHandler {
public function isJones(AccountInterface $account) { }
public function isBadGuy(AccountInterface $account) { }
public function access(AccountINterface $account, Route $route) {
return $this->isJones($account) && !($this->isBadGuy());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment