| 1 | <?php |
||
| 7 | abstract class AbstractSubscriablePanel extends AbstractPanel |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * setLaravel. |
||
| 11 | * |
||
| 12 | * @param \Illuminate\Contracts\Foundation\Application $laravel |
||
| 13 | * @return $this |
||
| 14 | */ |
||
| 15 | 7 | public function setLaravel(Application $laravel = null) |
|
| 16 | { |
||
| 17 | 7 | parent::setLaravel($laravel); |
|
| 18 | 7 | if ($this->hasLaravel() === true) { |
|
| 19 | 7 | $this->subscribe(); |
|
| 20 | } |
||
| 21 | |||
| 22 | 7 | return $this; |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * subscribe. |
||
| 27 | */ |
||
| 28 | abstract protected function subscribe(); |
||
| 29 | } |
||
| 30 |