Show
Ignore:
Timestamp:
01/20/2008 05:14:16 PM (12 months ago)
Author:
Shadowhand
Message:

Follow up to r1753:

  • Removed URI::construct()
  • Loader, URI, and Input will only be loaded for the first Controller
  • Slight optimizations to Kohana::instance()
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/URI.php

    r1672 r1754  
    1111 
    1212        /** 
    13          * Constructor. 
    14          */ 
    15         public function __construct() 
    16         { 
    17                 Log::add('debug', 'URI library initialized.'); 
     13         * Returns a singleton instance of URI. 
     14         * 
     15         * @return  object 
     16         */ 
     17        public static function instance() 
     18        { 
     19                static $instance; 
     20 
     21                // Initialize the URI instance 
     22                empty($instance) and $instance = new URI; 
     23 
     24                return $instance; 
    1825        } 
    1926