<commit_before><?php
/**
 * Minds Email Provider
 */

namespace Minds\Core\Email;

use Minds\Core\Di\Provider;

class EmailProvider extends Provider
{
    public function register()
    {
        $this->di->bind('Mailer', function ($di) {
            return new Mailer(new \PHPMailer());
        }, ['useFactory'=>true]);
        $this->di->bind('Email\SpamFilter', function ($di) {
            return new SpamFilter();
        }, ['useFactory'=>true]);

        $this->di->bind('Email\Manager', function ($di) {
            return new Manager();
        }, ['useFactory' => true]);

        $this->di->bind('Email\Repository', function ($di) {
            return new Repository();
        }, ['useFactory' => true]);
    }
}<commit_msg>(feat): email provider for di<commit_after><?php
/**
 * Minds Email Provider
 */

namespace Minds\Core\Email;

use Minds\Core\Di\Provider;

class EmailProvider extends Provider
{
    public function register()
    {
        $this->di->bind('Mailer', function ($di) {
            return new Mailer(new \PHPMailer());
        }, ['useFactory'=>true]);
        $this->di->bind('Email\SpamFilter', function ($di) {
            return new SpamFilter();
        }, ['useFactory'=>true]);

        $this->di->bind('Email\Manager', function ($di) {
            return new Manager();
        }, ['useFactory' => true]);

        $this->di->bind('Email\Repository', function ($di) {
            return new Repository();
        }, ['useFactory' => true]);

        $this->di->bind('Email\Verify\Manager', function ($di) {
            return new Verify\Manager;
        }, ['useFactory' => true]);
    }
}
{'fraction_non_alphanumeric': 0.18270999386879216, 'fraction_numerical': 0.0, 'mean_word_length': 2.4430379746835444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 30, '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': '6859163', 'n_tokens_mistral': 473, 'n_tokens_neox': 466, 'n_words': 104}