Created
March 16, 2015 12:04
-
-
Save anonymous/e9f0eb0443d17e751e6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Typovision\Simpleblog\Service; | |
class SignalService implements \TYPO3\CMS\Core\SingletonInterface { | |
public function handleInsertEvent(\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, $signalInformation) { | |
if($object instanceof \Typovision\Simpleblog\Domain\Model\Blog) { | |
$logfile = "C:\\xampp\\htdocs\\t3Test\\testLog.txt"; | |
\TYPO3\CMS\Extbase\Utility\GeneralUtility::writeFile($logfile, "test"); | |
} | |
} | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Typovision\Simpleblog\Service; | |
class SignalService implements \TYPO3\CMS\Core\SingletonInterface { | |
public function handleInsertEvent(\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, $signalInformation) { | |
if($object instanceof \Typovision\Simpleblog\Domain\Model\Blog) { | |
$logfile = "C:\\xampp\\htdocs\\t3Test\\testLog.txt"; | |
$handle = fopen($logfile, "a+"); | |
fwrite($handle, "test"); | |
fclose($handle); | |
} | |
} | |
} | |
?> |
stmllr
commented
Mar 16, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment