| @@ 51-65 (lines=15) @@ | ||
| 48 | * |
|
| 49 | * @param ContainerInterface $container |
|
| 50 | */ |
|
| 51 | public function __construct(ContainerInterface $container) |
|
| 52 | { |
|
| 53 | parent::__construct($container); |
|
| 54 | ||
| 55 | $this->model = $container->get('anime-model'); |
|
| 56 | ||
| 57 | $this->base_data = array_merge($this->base_data, [ |
|
| 58 | 'menu_name' => 'anime_list', |
|
| 59 | 'url_type' => 'anime', |
|
| 60 | 'other_type' => 'manga', |
|
| 61 | 'config' => $this->config, |
|
| 62 | ]); |
|
| 63 | ||
| 64 | $this->cache = $container->get('cache'); |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Show a portion, or all of the anime list |
|
| @@ 57-70 (lines=14) @@ | ||
| 54 | * |
|
| 55 | * @param ContainerInterface $container |
|
| 56 | */ |
|
| 57 | public function __construct(ContainerInterface $container) |
|
| 58 | { |
|
| 59 | parent::__construct($container); |
|
| 60 | ||
| 61 | $this->urlGenerator = $container->get('url-generator'); |
|
| 62 | $this->anime_model = $container->get('anime-model'); |
|
| 63 | $this->anime_collection_model = $container->get('anime-collection-model'); |
|
| 64 | $this->base_data = array_merge($this->base_data, [ |
|
| 65 | 'menu_name' => 'collection', |
|
| 66 | 'url_type' => 'anime', |
|
| 67 | 'other_type' => 'manga', |
|
| 68 | 'config' => $this->config, |
|
| 69 | ]); |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * Search for anime |
|
| @@ 52-64 (lines=13) @@ | ||
| 49 | * |
|
| 50 | * @param ContainerInterface $container |
|
| 51 | */ |
|
| 52 | public function __construct(ContainerInterface $container) |
|
| 53 | { |
|
| 54 | parent::__construct($container); |
|
| 55 | ||
| 56 | $this->cache = $container->get('cache'); |
|
| 57 | $this->model = $container->get('manga-model'); |
|
| 58 | $this->base_data = array_merge($this->base_data, [ |
|
| 59 | 'menu_name' => 'manga_list', |
|
| 60 | 'config' => $this->config, |
|
| 61 | 'url_type' => 'manga', |
|
| 62 | 'other_type' => 'anime' |
|
| 63 | ]); |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * Get a section of the manga list |
|