tests/UnitTests/POData/Facets/NorthWind1/NorthWindService2.php
/**
     * This method is called only once to initialize service-wide policies
     * 
     * @param ServiceConfiguration $config
     */
This method is called only once to initialize service-wide policies


This method is called only once to initialize service - wide policies
public function initialize(ServiceConfiguration $config)
    {
        $config->setEntitySetPageSize('*', 5);
        $config->setEntitySetAccessRule('*', EntitySetRights::ALL);
        $config->setAcceptCountRequests(true);
        $config->setAcceptProjectionRequests(true);
        $config->setMaxDataServiceVersion(ProtocolVersion::V2());
    }
public function initialize ( ServiceConfiguration $ config ) { $ config -> setEntitySetPageSize ( '*' , 5 ) ; $ config -> setEntitySetAccessRule ( '*' , EntitySetRights :: ALL ) ; $ config -> setAcceptCountRequests ( true ) ; $ config -> setAcceptProjectionRequests ( true ) ; $ config -> setMaxDataServiceVersion ( ProtocolVersion :: V2 ( ) ) ; }
This method is called only once to initialize service-wide policies
This method is called only once to initialize service - wide policies