title: fosRestBundle : Send Array into Http Request Header
body: <p><strong>Aim :</strong> Send an <em>Http request</em> as an <strong>array</strong> (i'm looking to the <strong>uri syntax</strong> if it's possible to send an array by the header of the <strong>Http</strong>)</p>
  
  <p><strong><em>Server Side</em></strong></p>
  
  <p><strong>ProfilHandler.php</strong> My Profil Handler</p>
  
  <pre><code>/**
       * Get a list of News.
       *
       * @param int $limit  the limit of the result
       * @param int $offset starting from the offset
       * @param array $sector get profils by sectors
       *
       * @return array
       */
      public function all($limit = 5, $offset = 0,$sector)
      {
          return $this-&gt;repository-&gt;findBy(array(), null, $limit, $offset, $sector);
      }
  </code></pre>
  
  <p><strong>ProfilController.php</strong> My Profil Controller</p>
  
  <pre><code>/**
       * List all profiles.
       *
       * @ApiDoc(
       *   resource = true,
       *   statusCodes = {
       *     200 = "Returned when successful"
       *   }
       * )
       *
       * @Annotations\QueryParam(name="offset", requirements="\d+", nullable=true, description="Offset from which to start listing profiles.")
       * @Annotations\QueryParam(name="limit", requirements="\d+", default="10", description="How many pages to return.")
       * @Annotations\QueryParam(name="sector", requirements="\d+", default="IT", description="How many pages to return.")
      *
       * @Annotations\View(
       *  templateVar="profiles"
       * )
       *
       * @param Request               $request      the request object
       * @param ParamFetcherInterface $paramFetcher param fetcher service
       *
       * @return array
       */
      // ....
      public function getProfilsAction(Request $request, ParamFetcherInterface $paramFetcher)
      {
          $offset = $paramFetcher-&gt;get('offset');
          $offset = null == $offset ? 0 : $offset;
          $limit = $paramFetcher-&gt;get('limit');
          $secteur = $paramFetcher-&gt;get('sector');
  
          return $this-&gt;container-&gt;get('genius_profile.profil.handler')-&gt;all($limit, $offset,$sector);
      }
  </code></pre>