code: public function getIsFlash()
      {
          $userAgent = $this->headers->get('User-Agent', '');
          return stripos($userAgent, 'Shockwave') !== false
              || stripos($userAgent, 'Flash') !== false;
      }
docs: Returns whether this is an Adobe Flash or Flex request.
  @return bool whether this is an Adobe Flash or Adobe Flex request.