1: <?php
2: namespace Opencart\Catalog\Controller\Startup;
3: /**
4: * Class Application
5: *
6: * @package Opencart\Catalog\Controller\Startup
7: */
8: class Application extends \Opencart\System\Engine\Controller {
9: /**
10: * @return void
11: */
12: public function index(): void {
13: // Weight
14: $this->registry->set('weight', new \Opencart\System\Library\Cart\Weight($this->registry));
15:
16: // Length
17: $this->registry->set('length', new \Opencart\System\Library\Cart\Length($this->registry));
18:
19: // Cart
20: $this->registry->set('cart', new \Opencart\System\Library\Cart\Cart($this->registry));
21:
22: // Validation
23: $this->load->helper('validation');
24: }
25: }
26: