1 | <?php |
||
14 | class TestWishListPage_Controller extends Page_Controller implements TestOnly |
||
|
|||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private static $managed_object = 'TestProductWishList'; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private static $url_handler = [ |
||
26 | 'test-wishlist-page-path' => 'index' |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private static $extensions = [ |
||
33 | 'ProductWishListControllerExtension', |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * empty init |
||
38 | */ |
||
39 | 1 | public function init() |
|
44 | |||
45 | } |
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.