Movable Type Documentation > Developer

How the Registry Works

The registry works by giving a place for components to store configuration directives and behaviors. The registry is a collection of key/value pairs. Each key is a unique identifier for the value it contains. Keys are then used by the core application and components to lookup those values in order to function according to their definition.

Each component and plugin defines for itself the set of items it wishes to add to the registry within a simple configuration file. This file is in a simple format called YAML, which allows developers to represents very simple data structures in human and machine readable form. The structure of this file is simple and mirrors the structure of the registry itself making it very simple to merge the key/value pairs found within it into the core registry.

This page was last updated on 2007-07-16, 17:40.  

Submit a User Contributed Note

User contributed notes are a great way to share the knowledge you have gained in using Movable Type.

If you have a technical question or problem, please visit Movable Type Support.

(If you haven't left a note here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)