public function allow($actions = null)
    {
        if ($actions === null) {
            $controller = $this->_registry->getController();
            $this->allowedActions = get_class_methods($controller);

            return;
        }
        $this->allowedActions = array_merge($this->allowedActions, (array)$actions);
    }
public function allow($actions = null)
    {
        if ($actions === null) {
            $controller = $this->_registry->getController();
            $this->allowedActions = get_class_methods($controller);

            return;
        }
        $this->allowedActions = array_merge($this->allowedActions, (array)$actions);
    }
public function allow ( $ actions = null ) { if ( $ actions === null ) { $ controller = $ this -> _registry -> getController ( ) ; $ this -> allowedActions = get_class_methods ( $ controller ) ; return ; } $ this -> allowedActions = array_merge ( $ this -> allowedActions , ( array ) $ actions ) ; }
Takes a list of actions in the current controller for which authentication is not required, or
no parameters to allow all actions.

You can use allow with either an array or a simple string.

```
$this->Auth->allow('view');
$this->Auth->allow(['edit', 'add']);
```
or to allow all actions
```
$this->Auth->allow();
```

@param string|array|null $actions Controller action name or array of actions
@return void
@link https://book.cakephp.org/3.0/en/controllers/components/authentication.html#making-actions-public
Takes a list of actions in the current controller for which authentication is not required or no parameters to allow all actions .