コード例 #1
0
 /**
  * Instantiate the sfSympalCache instance and prime the cache for this Sympal
  * project
  *
  * @see sfSympalConfiguration
  * @see sfSympalPluginConfiguration
  * @param sfSympalConfiguration $sympalConfiguration
  */
 public function __construct(sfSympalConfiguration $sympalConfiguration)
 {
     $this->_sympalConfiguration = $sympalConfiguration;
     $this->_projectConfiguration = $sympalConfiguration->getProjectConfiguration();
     $this->_cacheDriver = call_user_func_array(sfSympalConfig::get('get_cache_driver_callback'), array($this));
     $this->primeCache();
 }
コード例 #2
0
 /**
  * Class Constructor
  * 
  * @param sfSympalConfiguration $configuration The sympal configuration
  */
 public function __construct(sfSympalConfiguration $configuration)
 {
     $this->_dispatcher = $configuration->getEventDispatcher();
     $this->_configuration = $configuration;
     $this->_siteSlug = $configuration->getProjectConfiguration()->getApplication();
 }