summaryrefslogtreecommitdiff
path: root/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md')
-rw-r--r--_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md b/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md
index 9466bbc..0592f4f 100644
--- a/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md
+++ b/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I show how to disable some components in Catalyst.
title: How to prevent some components to be loaded by Catalyst
+type: codex
---
Let's say you have a large [Catalyst](http://search.cpan.org/perldoc?Catalyst) application, with a lot of compoments. When you deploy your application, or when you want to test it while your developping, you may not want to have some of thoses components loaded (you don't have all the dependencies, they are incompatible, etc...). Catalyst use [Module::Pluggable](http://search.cpan.org/perldoc?Module::Pluggable) to load the components, so you can easily configure this. In your application's configuration, add:
@@ -14,7 +15,7 @@ setup_components:
...
{% endhighlight %}
-Module::Pluggable have some other interesting features. You may have a second Catalyst application, and want to use one or more components from this one. You can easily do this:
+Module::Pluggable have some other interesting features. You may have a second Catalyst application, and want to use one or more components from this one. You can easily do this:
{% highlight yaml %}
setup_components:
@@ -22,5 +23,3 @@ setup_components:
- MyApp
- MyOtherApp::Model
{% endhighlight %}
-
-