Devise\Support\Console\DeviseInstallCommand::changeEmailConfigFile PHP Method

changeEmailConfigFile() public method

Changes the email config file out of the box to include devise as the password reminder view instead of the other view
public changeEmailConfigFile ( ) : void
return void
    public function changeEmailConfigFile()
    {
        $authConfigFile = $this->basePath . '/config/auth.php';
        $contents = file_get_contents($authConfigFile);
        $modified = str_replace("'email' => 'emails.password',", "'email' => 'devise::emails.recover-password',", $contents);
        if ($contents !== $modified) {
            file_put_contents($authConfigFile, $modified);
        }
    }