PHP code example of dcentrica / silverstripe-registration

1. Go to this page and download the library: Download dcentrica/silverstripe-registration library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dcentrica / silverstripe-registration example snippets


/**
  * @param string $link
  * @return RegistrationHandler
  */
public function getRegistrationHandler(string $link): RegistrationHandler
{
    $handler = parent::getRegistrationHandler($link, $this);

    return $handler->setHideCondition((bool) Environment::getEnv('SOME_VAR'));
}