Create a class that implements an interface in Magento
Learn Magento 2 dependency injection using RequestInterface to access URL params in controllers.
Lesson Content
Just like we created the session object with dependency injection, we can do the same to get a request object, which will allow us to get URL params and other items from the web request.
There’s a ...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.