Skip to content

Loading…

only require pake if it's not already loaded #21

Merged
merged 1 commit into from

2 participants

@xrstf

This makes it possible to have indeyets/pake as a requirement for projects using AiP and then use the autoloader provided by Composer. The init.php can then be configured to be pake's autoloader.

Christoph only require pake if it's not already loaded
This makes it possible to have indeyets/pake as a requirement for projects using AiP and then use the autoloader provided by Composer. The init.php can then be configured to be rake's autoloader.
1a85c2a
@indeyets indeyets merged commit 4b56593 into indeyets:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 16, 2012
  1. only require pake if it's not already loaded

    Christoph committed
    This makes it possible to have indeyets/pake as a requirement for projects using AiP and then use the autoloader provided by Composer. The init.php can then be configured to be rake's autoloader.
Showing with 3 additions and 1 deletion.
  1. +3 −1 AiP/Runner/App.php
View
4 AiP/Runner/App.php
@@ -2,7 +2,9 @@
namespace AiP\Runner;
-require 'pake/init.php';
+if (!defined('PAKE_DIR')) {
+ require 'pake/init.php';
+}
class App extends \pakeApp
{
Something went wrong with that request. Please try again.