added symfony/finder
factory method extended