View DoctrineGutterColorRepository.php
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 Sps\DormerCalculation\Infrastructure\Persistence\Doctrine; | |
use Doctrine\ORM\EntityRepository; | |
/** | |
* Class DoctrineGutterColorRepository | |
* @package Sps\DormerCalculation\Infrastructure\Persistence\Doctrine | |
*/ |
View DormerType.php
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 | |
abstract class DormerType implements DormerTypeInterface | |
{} |
View OfferFactory_v1.php
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 | |
final class OfferFactory | |
{ | |
/** @var ChargeRatesFactory $chargeRatesFactory */ | |
private $chargeRatesFactory; | |
/** @var PricesCalculator $pricesCalculator */ | |
private $pricesCalculator; |
View DormerCalculationController.php
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 Acme\DormerCalculation\Infrastructure\Symfony\DormerCalculationBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
use Acme\DormerCalculation\Infrastructure\Symfony\DormerCalculationBundle\Form\DormerCalculation as CalculationForm; | |
use Acme\DormerCalculation\Domain\Model\DormerCalculation\Command\CalculateDormerCommand; | |
use Symfony\Component\Form\FormError; |
View ResourceProjection.php
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 Acme\Infrastructure\Projection\Resource; | |
use Prooph\Bundle\EventStore\Projection\ReadModelProjection; | |
use Prooph\EventStore\Projection\ReadModelProjector; | |
use Acme\Domain\Model\Resource\Event\PhotoUploaded; | |
use Acme\Domain\Model\Resource\Event\ResourceAcquired; | |
/** |
View placeholder.js
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
function placeholder2text(textElementId, text) | |
{ | |
var textElement = document.getElementById(textElementId); | |
if(textElement.createTextRange && textElement.caretPos) | |
{ | |
var caretPos = textElement.caretPos; | |
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; | |
textElement.focus(); | |
} |
View DefaultController.php
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 AppBundle\Controller; | |
class DefaultController extends Controller | |
{ | |
/** | |
* @Route("/gettoken") | |
*/ | |
public function getToken() |
View Photo.mongodb.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping | |
http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd"> | |
<document name="Acme\Domain\Model\Photo\Photo" collection="photos"> | |
<field fieldName="_id" id="true" /> | |
<field fieldName="galleryId" type="string" /> | |
<field fieldName="description" type="string" /> |
View composer.json
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
{ | |
"type": "project", | |
"license": "proprietary", | |
"require": { | |
"php": "^7.1.3", | |
"ext-iconv": "*", | |
"symfony/console": "^4.0", | |
"symfony/flex": "^1.0", | |
"symfony/framework-bundle": "^4.0", | |
"symfony/lts": "^4@dev", |
View OfferNumberGenerator.php
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 Sps\Intranet\Domain\Model\Offer; | |
use Sps\Intranet\Domain\Model\Partner\PartnerId; | |
use Sps\Intranet\Infrastructure\Projection\Mongo\OfferReadModelFinder; | |
/** | |
* Class OfferNumberGenerator | |
* @package Sps\Intranet\Domain\Model\Offer |