symfony のデフォルトルーターを拡張したいです。lib/ にルーティング フォルダーを作成し、customRouter.class.php を作成して lib/routing に保存しました。以下のように factory.yml を変更しました。
all:
routing:
class: customRouter
私の customRouter.class.php は次のとおりです。
class customRouter extends sfPatternRouting{
}
sfPatternRoutingクラスのみを拡張します。アプリケーションを実行すると、次のようなエラーが表示されます。
Catchable fatal error: Argument 1 passed to sfRouting::__construct() must be an instance of sfEventDispatcher, string given in /opt/task/lib/vendor/symfony/lib/routing/sfRouting.class.php on line 32
問題がわかりません。私はクラスを拡張するだけです。symfony のルーターを拡張するソリューションは何ですか?