| 1 | <?php  | 
            ||
| 3 | class DMSDocumentAdminExtension extends Extension  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 4 | { | 
            ||
| 5 | private static $managed_models = array(  | 
            ||
| 6 | 'DMSDocumentCartSubmission'  | 
            ||
| 7 | );  | 
            ||
| 8 | |||
| 9 | /**  | 
            ||
| 10 | * Remove ability to add new items in these grid fields  | 
            ||
| 11 | *  | 
            ||
| 12 | * @param CMSForm $form  | 
            ||
| 13 | */  | 
            ||
| 14 | public function updateEditForm(CMSForm $form)  | 
            ||
| 21 | }  | 
            ||
| 22 | 
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.