CakeDC\Users\Model\Behavior\RegisterBehavior::initialize PHP Method

initialize() public method

Constructor hook method.
public initialize ( array $config ) : void
$config array The configuration settings provided to this behavior.
return void
    public function initialize(array $config)
    {
        parent::initialize($config);
        $this->validateEmail = (bool) Configure::read('Users.Email.validate');
        $this->useTos = (bool) Configure::read('Users.Tos.required');
        $this->Email = new EmailSender();
    }