| 1 | <?php |
||
| 14 | class TestWishListPage_Controller extends Page_Controller implements TestOnly |
||
|
|
|||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private static $url_handler = [ |
||
| 21 | 'test-wishlist-page-path' => 'index' |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private static $extensions = [ |
||
| 28 | 'ProductWishListControllerExtension', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * empty init |
||
| 33 | */ |
||
| 34 | public function init() |
||
| 39 | |||
| 40 | } |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.