PHP - 前端控制器模式。 一个巨大的转换声明

I'm using the front controller pattern in conjunction with a command resolver class, whose only function is to map requests from the view to a command object.

Everything works fine, but I'm starting to wonder if my implementation, which basically consists of a switch statement, is actually bad practice.

Would it be better practice to replace this switch statement with an XML file, or to map the requests physically to files in the command class (i.e. the request name would be the file name), or is a switch statement fine for this purpose?

Edit: I am using MVC, the front controller exists in the controller. This is more of a design pattern within a design pattern question.

By using switch, you are hardcoding a lot. How about writting command function which will check possible array of files (possibly from cache which will be filled once by reading directory with files), and load a file if its ok.?

Front Controller needs a router class, often used along with MVC design pattern.

To see how you can avoid switch, see this nice tutorial at phpro.org:

Here is how the router is constructed in above tutorial.