Application::init()


Source

File: classes/Application.php

	public function init() {
		$this->path     = DOZENT_ABSPATH;
		$this->url      = DOZENT_URL;
		$this->basename = DOZENT_BASENAME;


		do_action( 'dozent_init_before' );

		$this->load_plugin_textdomain();
		$this->flash_message_support();

		$this->core              = new Core();
		$this->admin             = new Admin();
		$this->post_type         = new PostType();
		$this->resources         = new Resources();
		$this->ajax              = new Ajax();
		$this->localize_script   = new LocalizeScript();
		$this->metabox           = new MetaBox();
		$this->course_builder    = new CourseBuilder();
		$this->course_curriculum = CourseCurriculum::instance();
		$this->template          = new Template();
		$this->permalinks        = new Permalinks();
		$this->lecture           = new Lecture();
		$this->discussion        = new Discussion();
		$this->dashboard         = new Dashboard();
		$this->shortcode         = new ShortCode();
		$this->user              = new User();
		$this->withdrawal        = new Withdrawal();
		$this->course_gate       = new CourseGate();
		$this->wishlist          = new Wishlist();
		$this->quiz              = new Quiz();

		//Factory
		$this->course_factory = new Course();

		//Integration
		$this->wc  = new WooCommerce();
		$this->edd = new EDD();

		do_action( 'dozent_init_after' );
	}