Skip to content

Commit

Permalink
removed require in Sephpa.php, changed default file extension from `x…
Browse files Browse the repository at this point in the history
…sd` to `xml`
  • Loading branch information
AbcAeffchen committed Dec 18, 2014
1 parent 083fb0a commit 4e67939
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Sephpa - Change Log
===============

##1.2.3 - Dec 18, '14##
- bugfix: removed the `require` in Sephpa.php. The directory linked there does not exist.
- changed default file extension for SEPA files from xsd to xml. As everyone should name the files
in a useful way, the default value will be removed in the future.

##1.2.2 - Oct 19, '14##
- bugfix: refactoring caused a naming problem in sepa files
- added unit tests which compare the outputs to bank-validated files
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "abcaeffchen/sephpa",
"type": "library",
"description": "Generates Sepa files for credit transfers (pain.001.002.03, pain.001.003.03) and direct debit (pain.008.002.02, pain.008.003.02)",
"keywords": ["sepa","xml","xsd","banking"],
"keywords": ["sepa","xml","xsd","banking","files","finance","credit transfer","direct debit"],
"homepage": "https://github.com/AbcAeffchen/Sephpa",
"license": "MIT",
"authors": [
Expand Down
7 changes: 2 additions & 5 deletions src/Sephpa.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
namespace AbcAeffchen\Sephpa;
use AbcAeffchen\SepaUtilities\SepaUtilities;

require __DIR__ . '/../vendor/autoload.php';


// Set default Timezone
date_default_timezone_set(@date_default_timezone_get());

Expand Down Expand Up @@ -158,7 +155,7 @@ public function generateXml($creDtTm = '')
* @param string $creDtTm You should not use this
* @throws SephpaInputException
*/
public function downloadSepaFile($filename = 'payments.xsd',$creDtTm = '')
public function downloadSepaFile($filename = 'payments.xml',$creDtTm = '')
{
header('Content-Disposition: attachment; filename="' . $filename . '"');
print $this->generateXml($creDtTm);
Expand All @@ -171,7 +168,7 @@ public function downloadSepaFile($filename = 'payments.xsd',$creDtTm = '')
* @param string $creDtTm You should not use this
* @throws SephpaInputException
*/
public function storeSepaFile($filename = 'payments.xsd', $creDtTm = '')
public function storeSepaFile($filename = 'payments.xml', $creDtTm = '')
{
$file = fopen($filename, 'w');
fwrite($file, $this->generateXml($creDtTm));
Expand Down

0 comments on commit 4e67939

Please sign in to comment.