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
{ | |
"time": "2020-09-13 15:45:00", | |
"level": "info", | |
"channel": "main", | |
"message": "Some log entry has been produced" | |
} |
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 Example\FooBundle\Service; | |
use Doctrine\ORM\EntityRepository; | |
use Symfony\Component\HttpKernel\Log\LoggerInterface; | |
class FooService | |
{ | |
protected $fooRepository; |
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 Example\FooBundle\Repository; | |
use Doctrine\ORM\EntityRepository; | |
class FooRepository extends EntityRepository | |
{ | |
} |
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
<container xmlns="http://symfony.com/schema/dic/services" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="[..]"> | |
<parameters> | |
<parameter key="example.foo.repository.class"> | |
Example\FooBundle\Repository\FooRepository</parameter> | |
<parameter key="example.foo.service.class"> | |
Example\FooBundle\Service\FooService</parameter> | |
</parameters> |
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 Example\FooBundle\Repository; | |
use Doctrine\Common\Persistence\ObjectRepository; | |
interface FooRepositoryInterface extends ObjectRepository | |
{ | |
public function fetchLatest(); | |
} |
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 Example\FooBundle\Service; | |
use Doctrine\ORM\EntityRepository; | |
use Symfony\Component\HttpKernel\Log\LoggerInterface; | |
class FooService | |
{ | |
protected $fooRepository; |
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 Example\FooBundle\Repository; | |
use Doctrine\ORM\EntityRepository; | |
class FooRepository extends EntityRepository | |
implements FooRepositoryInterface | |
{ | |
public function fetchLatest() |
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
<container xmlns="http://symfony.com/schema/dic/services" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="[..]"> | |
<parameters> | |
<parameter key="example.foo.repository.class"> | |
Example\FooBundle\Repository\FooRepository</parameter> | |
<parameter key="example.foo.service.class"> | |
Example\FooBundle\Service\FooService</parameter> | |
</parameters> |
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
{ | |
"name": "wowo/log-demo", | |
"type": "project", | |
"require": { | |
"monolog/monolog": "^2.0" | |
}, | |
"authors": [ | |
{ | |
"name": "Wojciech Sznapka", | |
"email": "wojciech@sznapka.pl" |
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
$poundToEuro = (float) simplexml_load_file('https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml')->xpath("//*[@currency='GBP']")[0]['rate']; |
NewerOlder