Remove usage of deprecated function setPattern()

and replace with replacement function setPath()
merged branch Danez/patch-1 (PR #760)

This PR was merged into the master branch.

Discussion
----------

Remove usage of deprecated function

Remove usage of deprecated function setPattern() and replace with replacement function setPath().

I was not sure if we also want to rename the variables/arguments $pattern to $path inside silex. For now i haven't touched them.

Commits
-------

3b4895d Remove usage of deprecated function setPattern()