Updated twig extension: removed unnecessary service container, injected object router routing service, methods catch Symony2 routing exceptions and return null if there is no result, updated phpdoc annotations, formatted code style.