public function isValidConfigurator($className)
    {
        //====================================================================//
        // Verify Class Exists
        if (false == class_exists($className)) {
            return Splash::log()->err('Configurator Class Not Found: '.$className);
        }

        //====================================================================//
        // Verify Configurator Class Extends ConfiguratorInterface
        try {
            $class = new $className();
            if (!($class instanceof ConfiguratorInterface)) {
                return Splash::log()->err(Splash::trans('ErrLocalInterface', $className, ConfiguratorInterface::class));
            }
        } catch (Exception $exc) {
            echo $exc->getMessage();

            return Splash::log()->err($exc->getMessage());
        }

        return true;
    }
public function isValidConfigurator($className)
    {
        //====================================================================//
        // Verify Class Exists
        if (false == class_exists($className)) {
            return Splash::log()->err('Configurator Class Not Found: '.$className);
        }

        //====================================================================//
        // Verify Configurator Class Extends ConfiguratorInterface
        try {
            $class = new $className();
            if (!($class instanceof ConfiguratorInterface)) {
                return Splash::log()->err(Splash::trans('ErrLocalInterface', $className, ConfiguratorInterface::class));
            }
        } catch (Exception $exc) {
            echo $exc->getMessage();

            return Splash::log()->err($exc->getMessage());
        }

        return true;
    }
public function isValidConfigurator ( $ className ) { //====================================================================// // Verify Class Exists if ( false == class_exists ( $ className ) ) { return Splash :: log ( ) -> err ( 'Configurator Class Not Found: ' . $ className ) ; } //====================================================================// // Verify Configurator Class Extends ConfiguratorInterface try { $ class = new $ className ( ) ; if ( ! ( $ class instanceof ConfiguratorInterface ) ) { return Splash :: log ( ) -> err ( Splash :: trans ( 'ErrLocalInterface' , $ className , ConfiguratorInterface :: class ) ) ; } } catch ( Exception $ exc ) { echo $ exc -> getMessage ( ) ; return Splash :: log ( ) -> err ( $ exc -> getMessage ( ) ) ; } return true ; }
Verify Given Class Is a Valid Splash Configurator

@param string $className Configurator Class Name

@return bool
Verify Given Class Is a Valid Splash Configurator