public static function newWrapper($url, DataTablesProviderInterface $provider, UserInterface $user = null) {

        $dtWrapper = new DataTablesWrapper();
        $dtWrapper->getMapping()->setPrefix($provider->getPrefix());
        $dtWrapper->setMethod($provider->getMethod());
        $dtWrapper->setProvider($provider);
        $dtWrapper->setUser($user);
        $dtWrapper->setUrl($url);

        return $dtWrapper;
    }
public static function newWrapper($url, DataTablesProviderInterface $provider, UserInterface $user = null) {

        $dtWrapper = new DataTablesWrapper();
        $dtWrapper->getMapping()->setPrefix($provider->getPrefix());
        $dtWrapper->setMethod($provider->getMethod());
        $dtWrapper->setProvider($provider);
        $dtWrapper->setUser($user);
        $dtWrapper->setUrl($url);

        return $dtWrapper;
    }
public static function newWrapper ( $ url , DataTablesProviderInterface $ provider , UserInterface $ user = null ) { $ dtWrapper = new DataTablesWrapper ( ) ; $ dtWrapper -> getMapping ( ) -> setPrefix ( $ provider -> getPrefix ( ) ) ; $ dtWrapper -> setMethod ( $ provider -> getMethod ( ) ) ; $ dtWrapper -> setProvider ( $ provider ) ; $ dtWrapper -> setUser ( $ user ) ; $ dtWrapper -> setUrl ( $ url ) ; return $ dtWrapper ; }
Create a new wrapper.

@param string $url The URL.
@param DataTablesProviderInterface $provider The provider.
@param UserInterface $user The user.
@return DataTablesWrapperInterface Returns a wrapper.
Create a new wrapper .