Browse Source

ControllerTrait

packProduct
Guillaume 3 years ago
parent
commit
7e99858740
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      Controller/ControllerTrait.php

+ 5
- 0
Controller/ControllerTrait.php View File

return $this->get(SectionResolver::class)->getCurrent(); return $this->get(SectionResolver::class)->getCurrent();
} }


public function getSectionCurrentSlug(): string
{
return $this->getSectionCurrent()->getSlug();
}

public function getCartCurrent(): OrderShopInterface public function getCartCurrent(): OrderShopInterface
{ {
return $this->getOrderShopContainer()->getBuilder()->createIfNotExist( return $this->getOrderShopContainer()->getBuilder()->createIfNotExist(

Loading…
Cancel
Save