public function loadWordpress()
    {
        if (!$this->alreadyInitialized) {
            foreach ($this->globals as $globalVariable) {
                global ${$globalVariable};
            }

            $loader = $this->getWordpressDirectory().'wp-blog-header.php';

            if (!file_exists($loader)) {
                throw new \InvalidArgumentException(
                    sprintf('Unable to find Wordpress loader in: "%s".', $loader)
                );
            }

            require_once $loader;

            $this->alreadyInitialized = true;
        }
    }