public function createSchema(array $config = []): SchemaInterface
    {
        $path = rtrim(Configure::read('ModuleConfig.schemaPath'), '/');
        $file = $this->configType . '.json';
        $schemaPath = implode(DIRECTORY_SEPARATOR, [$path, $file]);

        return new Schema($schemaPath, null, $config);
    }
public function createSchema(array $config = []): SchemaInterface
    {
        $path = rtrim(Configure::read('ModuleConfig.schemaPath'), '/');
        $file = $this->configType . '.json';
        $schemaPath = implode(DIRECTORY_SEPARATOR, [$path, $file]);

        return new Schema($schemaPath, null, $config);
    }
public function createSchema ( array $ config = [ ] ) : SchemaInterface { $ path = rtrim ( Configure :: read ( 'ModuleConfig.schemaPath' ) , '/' ) ; $ file = $ this -> configType . '.json' ; $ schemaPath = implode ( DIRECTORY_SEPARATOR , [ $ path , $ file ] ) ; return new Schema ( $ schemaPath , null , $ config ) ; }
Creates a new Schema instance for the current config type.

Reads the following configuration option: `ModuleConfig.schemaPath`.

@param mixed[] $config Schema config.
@return SchemaInterface Schema object.
Creates a new Schema instance for the current config type .