From 0d0ca28af3c2abddab16c68404de4e67c16bcd53 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 14 Jun 2014 10:53:59 +0200 Subject: [PATCH] migrate to composer --- syntax.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/syntax.php b/syntax.php index 15d7f46..eddbf55 100755 --- a/syntax.php +++ b/syntax.php @@ -12,8 +12,12 @@ if (!defined('DOKU_INC')) die(); if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); require_once DOKU_PLUGIN . 'syntax.php'; -// TODO migrate this to composer -require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'objectrepresentation' . DIRECTORY_SEPARATOR . 'DokuWikiObjectRepresentation.class.php'; +require_once __DIR__ . DIRECTORY_SEPARATOR . '../packagist/vendor/autoload.php'; + +use enko\dokuwiki\objectrepresentation\DokuWikiIterator; +use enko\dokuwiki\objectrepresentation\DokuWikiNode; +use enko\dokuwiki\objectrepresentation\DokuWikiNameSpace; +use enko\dokuwiki\objectrepresentation\DokuWikiPage; /** * All DokuWiki plugins to extend the parser/rendering mechanism