src/Graviton/RestBundle/ExclusionStrategy/SelectExclusionStrategy.php
private function createArrayByPath($path)
    {
        $keys = explode('.', $path);
        $val = true;
        $localArray = [];
        for ($i=count($keys)-1; $i>=0; $i--) {
            $localArray = [$keys[$i]=>$val];
            $val = $localArray;
        }
        return $localArray;
    }
private function createArrayByPath($path)
    {
        $keys = explode('.', $path);
        $val = true;
        $localArray = [];
        for ($i=count($keys)-1; $i>=0; $i--) {
            $localArray = [$keys[$i]=>$val];
            $val = $localArray;
        }
        return $localArray;
    }
private function createArrayByPath ( $ path ) { $ keys = explode ( '.' , $ path ) ; $ val = true ; $ localArray = [ ] ; for ( $ i = count ( $ keys ) - 1 ; $ i >= 0 ; $ i -- ) { $ localArray = [ $ keys [ $ i ] => $ val ] ; $ val = $ localArray ; } return $ localArray ; }
Convert dot string to array.

@param string $path string dotted array

@return array
Convert dot string to array .