I am trying to streamline application configuration and bootstrapping
in our projects to make deployment and updates easier. As I look at
the format for resources in configuration files, I wonder whether
there is some way that a property of one resource could be pointed
toward another reference directly in the configuration without having
to write custom resource plugins, modifying the bootstrap, or
duplicating settings in multiple sections. Is there a way to do
something like this?

resources.mail.transport.type = smtp
resources.mail.transport.host = my-smtp-host


resources.db.params.host = my-db-host
resources.db.params.username = testuser
resources.db.params.password = ********
resources.db.profiler.enabled = true
resources.db.profiler.class = Zend_Db_Profiler_Firebug


resources.log.db.writerName = Db
resources.log.db.writerParams.db = <<<<<<<<<<<<<<<<<  REFERENCE TO resources.db
resources.log.db.writerParams.table = logTable
resources.log.db.writerParams.columnMap.timestamp = timestamp
resources.log.db.writerParams.columnMap.priority = priority
resources.log.db.writerParams.columnMap.priorityName = priorityName
resources.log.db.writerParams.columnMap.message = message
resources.log.db.filterName = Priority
resources.log.db.filterParams.priority = Zend_Log::INFO

resources.log.mail.writerName = Mail
resources.log.mail.writerParams.charset = UTF-8
resources.log.mail.writerParams.subjectPrependText = Application Error
resources.log.mail.writerParams.transport <<<<<<<<<<<<<<<<<  REFERENCE
TO resources.mail
resources.log.mail.filterName = Priority
resources.log.mail.filterParams.priority = Zend_Log::WARN



resources.session.use_only_cookies = true
resources.session.cookie_httponly = true
resources.session.name = app_session
resources.session.saveHandler.class = My_Session_SaveHandler_CustomDb
resources.session.saveHandler.params.db = <<<<<<<<<<<<<<<<<  REFERENCE
TO resources.db



Andrew

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to