| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public function initialize(Grid $grid) |
||
| 56 | { |
||
| 57 | parent::initialize($grid); |
||
| 58 | Event::listen(Grid::EVENT_PREPARE, function (Grid $grid) { |
||
| 59 | $this->config = $grid->getConfig(); |
||
| 60 | if ($grid->getInputProcessor()->getValue(static::INPUT_PARAM, false)) { |
||
| 61 | dispatch(new ExportExcel($this->getDate(), $this->getBaseName(), $this->config)); |
||
| 62 | } |
||
| 63 | }); |
||
| 64 | } |
||
| 65 | } |