Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
590faf8c
Commit
590faf8c
authored
May 13, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove irrelevant comments
parent
4ac3ab4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
SendCcasTransactionsExportToPrestatairesCommand.php
...mmand/SendCcasTransactionsExportToPrestatairesCommand.php
+0
-13
No files found.
src/Command/SendCcasTransactionsExportToPrestatairesCommand.php
View file @
590faf8c
...
@@ -220,7 +220,6 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
...
@@ -220,7 +220,6 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
}
}
$nf
=
new
NumberFormatter
(
'fr'
,
NumberFormatter
::
SPELLOUT
);
$nf
=
new
NumberFormatter
(
'fr'
,
NumberFormatter
::
SPELLOUT
);
//see below why not used $filesToDelete = [];
foreach
(
$prestas
as
$p
)
{
foreach
(
$prestas
as
$p
)
{
/* @var Prestataire $p */
/* @var Prestataire $p */
...
@@ -237,23 +236,11 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
...
@@ -237,23 +236,11 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
$mail
=
$this
->
prepareMail
(
$p
,
$month
,
$year
,
$prestaTotal
);
$mail
=
$this
->
prepareMail
(
$p
,
$month
,
$year
,
$prestaTotal
);
if
(
$path
)
{
if
(
$path
)
{
$mail
->
attach
(
\Swift_Attachment
::
fromPath
(
$path
));
$mail
->
attach
(
\Swift_Attachment
::
fromPath
(
$path
));
//see below why not used $filesToDelete[] = $path;
}
}
$this
->
mailer
->
send
(
$mail
);
$this
->
mailer
->
send
(
$mail
);
}
}
}
}
//TODO : if we really want to delete files, we need to find another way
//TODO : as below code does not work probably due to mailer trying to access the file later.
//TODO : idea : https://stackoverflow.com/questions/15643027/swiftmailer-remove-attachment-after-send
/*
* In FileByteStream.php line 131:
* Unable to open file for reading [/.../ccastransactions/ssagir_ccastrans_2024-5_xxxx.csv]
*/
/*foreach ($filesToDelete as $ftd) {
unlink($ftd);
}*/
$this
->
io
->
success
(
'End'
);
$this
->
io
->
success
(
'End'
);
$memoryUsage
=
memory_get_usage
(
true
)
/
1024
/
1024
;
$memoryUsage
=
memory_get_usage
(
true
)
/
1024
/
1024
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment