public function __construct(AdminPanelRepository $admin)
 {
     $this->pages = $admin->getPages();
 }
Beispiel #2
0
 /**
  * Create a new composer
  * @param AdminPanelRepository $admin
  */
 public function __construct(AdminPanelRepository $admin)
 {
     // Dependencies automatically resolved by service container.
     $this->pages = $admin->getPages();
 }