FIX: PHP-Markdown does not adhere to PEAR conventions, therefore it cannot autoload...
[phorkie.git] / src / phorkie / SetupCheck.php
index ba52d4261313b4fe3b4b972773d6bd306b862318..b1107b51b15b66c26a6b982cc0146ac45024b400 100644 (file)
@@ -7,7 +7,10 @@ class SetupCheck
         'pear.php.net/VersionControl_Git'  => 'VersionControl_Git',
         'pear.twig-project.org/Twig'       => 'Twig_Autoloader',
         'pear.php.net/Date_HumanDiff'      => 'Date_HumanDiff',
+        'pear.php.net/HTTP_Request2'       => 'HTTP_Request2',
+        'pear.php.net/Pager'               => 'Pager',
         'pear.php.net/Services_Libravatar' => 'Services_Libravatar',
+        'zustellzentrum.cweiske.de/MIME_Type_PlainDetect' => 'MIME_Type_PlainDetect',
     );
 
     protected $writableDirs;
@@ -28,6 +31,7 @@ class SetupCheck
         $sc->checkDeps();
         $sc->checkDirs();
         $sc->checkGit();
+        $sc->checkDatabase();
     }
 
     public function checkDeps()
@@ -67,6 +71,12 @@ class SetupCheck
         }
     }
 
+    public function checkDatabase()
+    {
+        $dbs = new Database();
+        $dbs->getSetup()->setup();
+    }
+
     public function fail($msg)
     {
         throw new Exception($msg);