Torro_Forms::instantiate_component_services()

Instantiates the plugin component services.

Description

See also

Source

File: src/torro-forms.php

	protected function instantiate_component_services() {
		$this->admin_pages = $this->instantiate_library_service( 'Components\Admin_Pages', $this->prefix, array(
			'ajax'          => $this->ajax,
			'assets'        => $this->assets,
			'error_handler' => $this->error_handler,
		) );

		$this->extensions = $this->instantiate_library_service( 'Components\Extensions', $this->prefix, $this->instantiate_plugin_class( 'Translations\Translations_Extensions' ) );
		$this->extensions->set_plugin( $this );

		$this->template_tag_handlers = $this->instantiate_plugin_service( 'Components\Template_Tag_Handler_Manager', $this->prefix );

		$this->post_types = $this->instantiate_plugin_service( 'DB_Objects\Post_Type_Manager', $this->prefix, array(
			'options'       => $this->options,
			'error_handler' => $this->error_handler,
		) );

		$this->taxonomies = $this->instantiate_plugin_service( 'DB_Objects\Taxonomy_Manager', $this->prefix, array(
			'options'       => $this->options,
			'error_handler' => $this->error_handler,
		) );

		$this->form_uploads = $this->instantiate_plugin_service( 'Components\Form_Upload_Manager', $this->prefix, array(
			'taxonomies'    => $this->taxonomies,
			'error_handler' => $this->error_handler,
		) );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.