Magento 2 – How to get Current Cart Items?

Use the session to get the current cart quote items

PHP
PHP
NOTE : Magento\Checkout\Model\Cart is deprecated.