refatored with symfony/finder