sfBugTrackerRouting.class.php 632 Bytes
Newer Older
Игорь's avatar
init    
Игорь committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

/**
 *
 * @package    symfony
 * @subpackage plugin
 * @author     davert
 */
class sfBugTrackerRouting
{
  /**
   * Listens to the routing.load_configuration event.
   *
   * @param sfEvent An sfEvent instance
   * @static
   */
  static public function listenToRoutingLoadConfigurationEvent(sfEvent $event)
  {
    $r = $event->getSubject();

    // preprend our routes
    $r->prependRoute('bug_report', new sfRoute('/bugreport', array('module' => 'bugTracker', 'action' => 'bugReport')));
    $r->prependRoute('proxy', new sfRoute('/proxy', array('module' => 'bugTracker', 'action' => 'proxy')));
    // activation
  }
}