public function init()
    {
        Craft::setAlias('@NerdsAndCompany/Schematic', __DIR__);

        $config = [
            'components' => [
                'elementIndexMapper' => [
                    'class' => ElementIndexMapper::class,
                ],
                'emailSettingsMapper' => [
                    'class' => EmailSettingsMapper::class,
                ],
                'generalSettingsMapper' => [
                    'class' => GeneralSettingsMapper::class,
                ],
                'modelMapper' => [
                    'class' => ModelMapper::class,
                ],
                'pluginMapper' => [
                    'class' => PluginMapper::class,
                ],
                'userSettingsMapper' => [
                    'class' => UserSettingsMapper::class,
                ],
            ],
            'dataTypes' => [
                'plugins' => PluginDataType::class,
                'sites' => SiteDataType::class,
                'volumes' => VolumeDataType::class,
                'assetTransforms' => AssetTransformDataType::class,
                'emailSettings' => EmailSettingsDataType::class,
                'fields' => FieldDataType::class,
                'generalSettings' => GeneralSettingsDataType::class,
                'sections' => SectionDataType::class,
                'globalSets' => GlobalSetDataType::class,
                'categoryGroups' => CategoryGroupDataType::class,
                'tagGroups' => TagGroupDataType::class,
                'userGroups' => UserGroupDataType::class,
                'userSettings' => UserSettingsDataType::class,
                'elementIndexSettings' => ElementIndexDataType::class,
            ],
        ];

        Craft::configure($this, $config);

        parent::init();
    }
public function init()
    {
        Craft::setAlias('@NerdsAndCompany/Schematic', __DIR__);

        $config = [
            'components' => [
                'elementIndexMapper' => [
                    'class' => ElementIndexMapper::class,
                ],
                'emailSettingsMapper' => [
                    'class' => EmailSettingsMapper::class,
                ],
                'generalSettingsMapper' => [
                    'class' => GeneralSettingsMapper::class,
                ],
                'modelMapper' => [
                    'class' => ModelMapper::class,
                ],
                'pluginMapper' => [
                    'class' => PluginMapper::class,
                ],
                'userSettingsMapper' => [
                    'class' => UserSettingsMapper::class,
                ],
            ],
            'dataTypes' => [
                'plugins' => PluginDataType::class,
                'sites' => SiteDataType::class,
                'volumes' => VolumeDataType::class,
                'assetTransforms' => AssetTransformDataType::class,
                'emailSettings' => EmailSettingsDataType::class,
                'fields' => FieldDataType::class,
                'generalSettings' => GeneralSettingsDataType::class,
                'sections' => SectionDataType::class,
                'globalSets' => GlobalSetDataType::class,
                'categoryGroups' => CategoryGroupDataType::class,
                'tagGroups' => TagGroupDataType::class,
                'userGroups' => UserGroupDataType::class,
                'userSettings' => UserSettingsDataType::class,
                'elementIndexSettings' => ElementIndexDataType::class,
            ],
        ];

        Craft::configure($this, $config);

        parent::init();
    }
public function init ( ) { Craft :: setAlias ( '@NerdsAndCompany/Schematic' , __DIR__ ) ; $ config = [ 'components' => [ 'elementIndexMapper' => [ 'class' => ElementIndexMapper :: class , ] , 'emailSettingsMapper' => [ 'class' => EmailSettingsMapper :: class , ] , 'generalSettingsMapper' => [ 'class' => GeneralSettingsMapper :: class , ] , 'modelMapper' => [ 'class' => ModelMapper :: class , ] , 'pluginMapper' => [ 'class' => PluginMapper :: class , ] , 'userSettingsMapper' => [ 'class' => UserSettingsMapper :: class , ] , ] , 'dataTypes' => [ 'plugins' => PluginDataType :: class , 'sites' => SiteDataType :: class , 'volumes' => VolumeDataType :: class , 'assetTransforms' => AssetTransformDataType :: class , 'emailSettings' => EmailSettingsDataType :: class , 'fields' => FieldDataType :: class , 'generalSettings' => GeneralSettingsDataType :: class , 'sections' => SectionDataType :: class , 'globalSets' => GlobalSetDataType :: class , 'categoryGroups' => CategoryGroupDataType :: class , 'tagGroups' => TagGroupDataType :: class , 'userGroups' => UserGroupDataType :: class , 'userSettings' => UserSettingsDataType :: class , 'elementIndexSettings' => ElementIndexDataType :: class , ] , ] ; Craft :: configure ( $ this , $ config ) ; parent :: init ( ) ; }
Initialize the module.
Initialize the module .