diff --git a/castor.php b/castor.php index e5460d69..41252e1a 100644 --- a/castor.php +++ b/castor.php @@ -23,7 +23,9 @@ run(['composer', 'install', '-o'], new Context()); } -require_once __DIR__ . '/vendor/autoload.php'; +$loader = require_once __DIR__ . '/vendor/autoload.php'; +$loader->unregister(); +$loader->register(false); // Every task lives in the ".castor" directory, one file per namespace. import(__DIR__ . '/.castor');