<commit_before><?php

namespace AppBundle\Factory;

use AppBundle\Service\Payment\Gateway\Paypal;
use AppBundle\Service\Payment\Gateway\Paytrek;
use AppBundle\Service\Payment\Gateway\Payu;

class PaymentGatewayFactory
{
    public static function create($paymentGatewaySlug, $em)
    {
        switch ($paymentGatewaySlug) {
            case 'paypal':
                $paymentGateway = new Paypal($em);
                break;

            case 'payu':
                $paymentGateway = new Payu($em);
                break;

            case 'paytrek':
                $paymentGateway = new Paytrek($em);
                break;

            default:
                $paymentGateway = null;
                break;
        }

        return $paymentGateway;
    }
}<commit_msg>payment gateway lere mail sınıfı gönderimi yapıldı<commit_after><?php

namespace AppBundle\Factory;

use AppBundle\Service\Payment\Gateway\Paypal;
use AppBundle\Service\Payment\Gateway\Paytrek;
use AppBundle\Service\Payment\Gateway\Payu;

class PaymentGatewayFactory
{
    public static function create($paymentGatewaySlug, $em, \Swift_Mailer $mailer)
    {
        switch ($paymentGatewaySlug) {
            case 'paypal':
                $paymentGateway = new Paypal($em, $mailer);
                break;

            case 'payu':
                $paymentGateway = new Payu($em, $mailer);
                break;

            case 'paytrek':
                $paymentGateway = new Paytrek($em, $mailer);
                break;

            default:
                $paymentGateway = null;
                break;
        }

        return $paymentGateway;
    }
}
{'fraction_non_alphanumeric': 0.0946854001221747, 'fraction_numerical': 0.0, 'mean_word_length': 1.8290155440414508, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4324959', 'n_tokens_mistral': 465, 'n_tokens_neox': 460, 'n_words': 95}