| 1 | <?php  | 
            ||
| 3 | class DMSCartAbstractController extends ContentController  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 4 | { | 
            ||
| 5 | /**  | 
            ||
| 6 | * Ensure that links for this controller use the customised route.  | 
            ||
| 7 | * Searches through the rules set up for the class and returns the first route.  | 
            ||
| 8 | *  | 
            ||
| 9 | * @param string $action  | 
            ||
| 10 | * @return string  | 
            ||
| 11 | */  | 
            ||
| 12 | public function Link($action = null)  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 |      * Retrieves a {@link DMSDocumentCart} instance | 
            ||
| 25 | *  | 
            ||
| 26 | * @return DMSDocumentCart  | 
            ||
| 27 | */  | 
            ||
| 28 | public function getCart()  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Controls the `Continue browsing` link found in DMSCartNavigation.ss. Defaults all requests back to home.  | 
            ||
| 35 | * @return string  | 
            ||
| 36 | */  | 
            ||
| 37 | public function getContinueBrowsingLink()  | 
            ||
| 41 | }  | 
            ||
| 42 | 
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.