diff --git a/system/core/CliController.php b/system/core/CliController.php
index <HASH>..<HASH> 100644
--- a/system/core/CliController.php
+++ b/system/core/CliController.php
@@ -120,7 +120,7 @@ class CliController
      */
     public static function __callStatic($method, $args)
     {
-        if (strpos($method, 'composer') === 0) {
+        if (strpos($method, 'composer') === 0 && defined('GC_VERSION')) {
             /* @var $hook \gplcart\core\Hook */
             $hook = Container::get('gplcart\\core\\Hook');
             $hook->fire('cli.composer', $method, $args, $this);
Check system bootstrapped when calling composer callbacks