Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
16591 anikendra 1
<?php
2
/**
3
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5
 *
6
 * Licensed under The MIT License
7
 * For full copyright and license information, please see the LICENSE.txt
8
 * Redistributions of files must retain the above copyright notice.
9
 *
10
 * @copyright	  Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11
 * @link		  http://cakephp.org CakePHP(tm) Project
12
 * @package		  Cake.Test.TestApp.Routing.Filter
13
 * @since		  CakePHP(tm) v 2.2
14
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
15
 */
16
 
17
App::uses('DispatcherFilter', 'Routing');
18
 
19
/**
20
 * Class TestDispatcherFilter
21
 *
22
 * @package		  Cake.Test.TestApp.Routing.Filter
23
 */
24
class TestDispatcherFilter extends DispatcherFilter {
25
 
26
	public function beforeDispatch(CakeEvent $event) {
27
		$event->data['request']->params['altered'] = true;
28
	}
29
 
30
	public function afterDispatch(CakeEvent $event) {
31
		$event->data['response']->statusCode(304);
32
	}
33
 
34
}