fixed method signature to fit latest symfony version