src/NotifierEmailSwiftMailerService.php
public function setConfiguration($configuration) {
        $emailRequiredConfigurations = $this->configuration;
        $configDiff = array_diff($emailRequiredConfigurations, $configuration);
        
        //validate that all required email settings are present
        if (
            is_array($configDiff
            && count($configDiff))
        ) {
            throw new NotifierEmailException('The configuration array does not contain all required Email configurations');
        }
        
        //set the configuration provided
        $this->configuration = $configuration;
    }
public function setConfiguration($configuration) {
        $emailRequiredConfigurations = $this->configuration;
        $configDiff = array_diff($emailRequiredConfigurations, $configuration);
        
        //validate that all required email settings are present
        if (
            is_array($configDiff
            && count($configDiff))
        ) {
            throw new NotifierEmailException('The configuration array does not contain all required Email configurations');
        }
        
        //set the configuration provided
        $this->configuration = $configuration;
    }
function setConfiguration() - Set all required configurations, passed in as an array
@param   array $configuration  - Array of various required configuration options

@return  void