src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Delete the files which were automatically created
     *
     * @param DoctrineRestServiceEntity $entity
     */
Delete the files which were automatically created
@param DoctrineRestServiceEntity $entity
Delete the files which were automatically created @param DoctrineRestServiceEntity $entity
public function deleteFiles(DoctrineRestServiceEntity $entity)
    {
        $config = $this->configResource->fetch(true);
        $restResourceClass   = $config['zf-rest'][$entity->controllerServiceName]['listener'];
        $restCollectionClass = $config['zf-rest'][$entity->controllerServiceName]['collection_class'];
        $reflector = new ReflectionClass($restResourceClass);
        unlink($reflector->getFileName());
        $reflector = new ReflectionClass($restCollectionClass);
        unlink($reflector->getFileName());
    }
public function deleteFiles ( DoctrineRestServiceEntity $ entity ) { $ config = $ this -> configResource -> fetch ( true ) ; $ restResourceClass = $ config [ 'zf-rest' ] [ $ entity -> controllerServiceName ] [ 'listener' ] ; $ restCollectionClass = $ config [ 'zf-rest' ] [ $ entity -> controllerServiceName ] [ 'collection_class' ] ; $ reflector = new ReflectionClass ( $ restResourceClass ) ; unlink ( $ reflector -> getFileName ( ) ) ; $ reflector = new ReflectionClass ( $ restCollectionClass ) ; unlink ( $ reflector -> getFileName ( ) ) ; }
Delete the files which were automatically created
 @param DoctrineRestServiceEntity $entity
Delete the files which were automatically created @param DoctrineRestServiceEntity $entity