Changeset 22771

Show
Ignore:
Timestamp:
07/02/09 13:47:15 (9 months ago)
Author:
rambo
Message:

check for syck extension when working with mvc components, refs #1196

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/external-tools/mvc_installer/bin/midgard2-install

    r22764 r22771  
    6565$resolver = midgard2_installer_resolver::get('pear'); 
    6666 
    67  
    6867/* 
    6968$exporter = midgard2_installer_exporter::get('git'); 
  • trunk/external-tools/mvc_installer/lib/installer.php

    r22769 r22771  
    2525 
    2626    /** 
     27     * Default constructor for now 
     28     */ 
     29    function __construct() {} 
     30 
     31    /** 
    2732     * Gets a (singleton) instance of installer of given type 
    2833     * 
  • trunk/external-tools/mvc_installer/lib/installer/mvc.php

    r22769 r22771  
    55class midgard2_installer_installer_mvc extends midgard2_installer_installer 
    66{ 
     7    /** 
     8     * Check for syck, all MVC components need it 
     9     */ 
     10    function __construct() 
     11    { 
     12        parent::__construct(); 
     13        if (!midgard2_installer_helpers::test_extension('syck')) 
     14        { 
     15            throw new midgard2_installer_runtime_exception(MGD2INST_ERROR_DEPENDENCY, 'syck extension is not available, this is required for YAML parsing'); 
     16        } 
     17    } 
     18 
    719    public function install($uri) 
    820    { 
  • trunk/external-tools/mvc_installer/lib/resolver.php

    r22766 r22771  
    55abstract class midgard2_installer_resolver 
    66{ 
     7    /** 
     8     * Default constructor for now 
     9     */ 
     10    function __construct() {} 
     11 
    712    /** 
    813     * Gets a (singleton) instance of resolver of given type 
  • trunk/external-tools/mvc_installer/lib/resolver/mvc.php

    r22769 r22771  
    55class midgard2_installer_resolver_mvc extends midgard2_installer_resolver 
    66{ 
     7    /** 
     8     * Check for syck, we need to be able to parse the config YAMLs 
     9     */ 
     10    function __construct() 
     11    { 
     12        parent::__construct(); 
     13        if (!midgard2_installer_helpers::test_extension('syck')) 
     14        { 
     15            throw new midgard2_installer_runtime_exception(MGD2INST_ERROR_DEPENDENCY, 'syck extension is not available, this is required for YAML parsing'); 
     16        } 
     17    } 
     18 
    719    public function is_installed($uri) 
    820    {