<?php

    /**
     * Vendor Class
     *
     * Manage vendor and can automatically detect vendor.
     *
     * @package Core
     */
    class Vendor
    {
        private $vendors = array();

        public function __construct()
        {
            if (ENVIRONMENT == 'testing' || ENVIRONMENT == 'development')
            {
                $dirs = scandir(BASE_PATH);
                $length = count($dirs);
                $arr = array();
                for ($i = 0 ; $i < count($dirs) ; $i++)
                {
                    if ($dirs[$i] != '.' && $dirs[$i] != '..' && $dirs[$i] != '.git' &&
                        is_dir($dirs[$i]))
                    {
                        $arr[] = $dirs[$i];
                    }
                }

                $config =& loadClass('Config', 'Core');
                $config->save('Vendor', $arr);
                $this->vendors = $arr;
            }
        }

        public function lists()
        {
            return $this->vendors;
        }
    }

?>

<?php

    /**
     * Vendor Class
     *
     * Manage vendor and can automatically detect vendor.
     *
     * @package Core
     */
    class Vendor
    {
        public function __construct()
        {
            if (ENVIRONMENT == 'testing' || ENVIRONMENT == 'development')
            {
                $dirs = scandir(BASE_PATH);
                $length = count($dirs);
                $arr = array();
                for ($i = 0 ; $i < count($dirs) ; $i++)
                {
                    if ($dirs[$i] != '.' && $dirs[$i] != '..' && $dirs[$i] != '.git' &&
                        is_dir($dirs[$i]))
                    {
                        $arr[] = $dirs[$i];
                    }
                }

                $config =& loadClass('Config', 'Core');
                $config->save('Vendor', $arr);
            }
        }
    }

?>

--- 
+++ 
@@ -9,6 +9,8 @@
      */
     class Vendor
     {
+        private $vendors = array();
+
         public function __construct()
         {
             if (ENVIRONMENT == 'testing' || ENVIRONMENT == 'development')
@@ -27,7 +29,13 @@
 
                 $config =& loadClass('Config', 'Core');
                 $config->save('Vendor', $arr);
+                $this->vendors = $arr;
             }
+        }
+
+        public function lists()
+        {
+            return $this->vendors;
         }
     }
 
Add method to get lists vendors
