]> git.andy128k.dev Git - ipf.git/commitdiff
change configuration call
authorAndrey Kutejko <andy128k@gmail.com>
Wed, 7 Jan 2015 18:43:12 +0000 (20:43 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Wed, 7 Jan 2015 18:43:12 +0000 (20:43 +0200)
index.php
ipf.php

index 489748a41f81d774fa7a8c26ffbecb44bf4dd92a..9753a2498cd7c9d34cc1ebb417b9d23f73e6c1a3 100644 (file)
--- a/index.php
+++ b/index.php
@@ -6,9 +6,8 @@ if (php_sapi_name() === 'cli-server' && is_file($_SERVER['DOCUMENT_ROOT'] . urld
     return false;
 
 $here = dirname(__FILE__);
-$project_path = $here . '/../project';
-$vendor_path = $here . '/../vendor';
-require_once $vendor_path.'/autoload.php';
-IPF::setUp($project_path, $here);
+$project_root = $here . '/..';
+require_once $project_root . '/vendor/autoload.php';
+IPF::configure($project_root, $here);
 IPF_Project::getInstance()->run();
 
diff --git a/ipf.php b/ipf.php
index 4f7153b736655a76f95c0335fe09d3197f6abfc0..a7dc548c2a117ad70f43bc977a828c4815127d41 100644 (file)
--- a/ipf.php
+++ b/ipf.php
@@ -31,10 +31,8 @@ final class IPF
             die('Specify site url routes');
     }
 
-    public static function setUp($project_path, $document_root)
+    public static function configure($project_root, $document_root)
     {
-        $project_root = dirname($project_path);
-
         self::$settings = IPF_Settings::create()
             ->apply(array(
                 'app_base'          => '',