0

I am wanting to use the Symfony\Component\Process\ProcessBuilder class and can see that it is included as part of the Silex codebase within the vendors folder. I am using the Silex phar file and assume that because I can readily instantiate other Symfony components like Request, Response and so on that it will correctly locate the file to include when I use the full namespace.

$foo = new Symfony\Component\HttpFoundation\Request(); //works fine

However, when I try and create and instance of it using:

$foo = new Symfony\Component\Process\ProcessBuilder(); //class not found

It gives me a class not found error. Does anyone know why this is and how I can use this class from the Silex phar without including the component seperately within my project?

luchaninov
  • 6,792
  • 6
  • 60
  • 75
danspam
  • 195
  • 1
  • 6
  • Looks like I can answer my own question here. I have looked in the Compiler.php file in Silex and it looks like the Process component is not included the the Silex phar file. – danspam Feb 27 '12 at 09:14
  • That is correct. You can post it as an answer to the question and then accept your own answer. ;-) – igorw Mar 02 '12 at 21:47

1 Answers1

2

It looks like the Process Symfony component is not included in the compiled Silex phar file.

danspam
  • 195
  • 1
  • 6