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 Gnugat\StackRollback; | |
use Doctrine\DBAL\Connection; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
/** | |
* Example: |
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 | |
// File: app/config/importer.php | |
use Symfony\Component\Finder\Finder; | |
$finder = new Finder(); | |
$files = $finder->files()->name('*.yml')->in(__DIR__.'/services')->in(__DIR__.'/vendors'); | |
foreach ($files as $file) { | |
$loader->import($file->getRealpath()); | |
} |
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 | |
use Assert\Assertion; | |
class RegisterNewMember | |
{ | |
public $email; | |
public $subscribeToNewsletter = true; | |
public function __construct($email, $subscribeToNewsletter = null) |
OlderNewer