Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1793 kill liuggio #144

Merged
merged 7 commits into from May 22, 2020
Merged

1793 kill liuggio #144

merged 7 commits into from May 22, 2020

Conversation

paschke
Copy link
Contributor

@paschke paschke commented May 12, 2020

see https://github.com/EmchBerger/projectassistant/issues/1793

Remove Liuggio/ExcelBundle, which requires the abandoned PHPOffice/PHPExcel bundle.
Remove ExcelReader service, which is not used.

Copy link
Contributor

@SimonHeimberg SimonHeimberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly one change

}

/**
* @expectedException \InvalidArgumentException
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @param string $filename filename to give to the download
* @param string $format format of write (like Excel2007)
* @param string $contentType mime content type
* @param PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet Excel object to create the download from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need for the namespace. The class has a use statement, and this is used in phpdoc as well.

@@ -94,40 +72,47 @@ public function fromHtml($html, $selector = null)

$tmpFile = $this->getTempHtmlFile($htmlStr); // as temporary file because it must have a filename

return $this->getExcelService()->createPHPExcelObject($tmpFile['path']);
return IOFactory::load($tmpFile['path']);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

$writer->save('php://output');
},
200,
[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. The headers are set later. So it is fine. We could skip this arg entirely ([] is the default).

@@ -1,104 +0,0 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is not used in pa nor in tm, so 👍 to delete it

@paschke paschke merged commit 91a9d67 into development May 22, 2020
@SimonHeimberg SimonHeimberg deleted the 1793_kill_liuggio branch May 29, 2020 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants