title: How to use ftp_connect in symfony Command class
body: <p>How can I use an ftp function in symfony command. In a controller the ftp functions are working fine. But not in the execute function my command class. I get the following error message.</p>
  
  <blockquote>
    <p>[Symfony\Component\Debug\Exception\UndefinedFunctionException]
      Attempted to call function "ftp_connect" from the global namespace.</p>
  </blockquote>
  
  <p>I have the extension loaded in <code>php.ini</code>. And as I have already mention it is working in controllers but not in Command classes</p>