<commit_before><?php  namespace Mitch\LaravelDoctrine\Console;

use Illuminate\Console\Command;

class GenerateProxiesCommand extends Command {

    protected $name = 'doctrine:generate:proxies';
    protected $description = 'Generate proxies for entities.';

    public function fire() {
        $entityManager = $this->laravel->make('Doctrine\ORM\EntityManagerInterface');

        $this->info('Starting proxy generation....');
        $metadata = $entityManager->getMetadataFactory()->getAllMetadata();
        if (empty($metadata)) {
            $this->error('No metadata found to generate any entities.');
            exit;
        }
        $directory = $this->laravel['config']['doctrine::doctrine.proxy.directory'];
        if ( ! $directory) {
            $this->error('The proxy directory has not been set.');
            exit;
        }
        $this->info('Processing entities:');
        foreach ($metadata as $item)
            $this->line($item->name);
        $entityManager->getProxyFactory()->generateProxyClasses($metadata, $directory);
        $this->info('Proxies have been created.');
    }
} <commit_msg>Load the config value correctly.<commit_after><?php  namespace Mitch\LaravelDoctrine\Console;

use Illuminate\Console\Command;

class GenerateProxiesCommand extends Command {

    protected $name = 'doctrine:generate:proxies';
    protected $description = 'Generate proxies for entities.';

    public function fire() {
        $entityManager = $this->laravel->make('Doctrine\ORM\EntityManagerInterface');

        $this->info('Starting proxy generation....');
        $metadata = $entityManager->getMetadataFactory()->getAllMetadata();
        if (empty($metadata)) {
            $this->error('No metadata found to generate any entities.');
            exit;
        }
        $directory = $this->laravel['config']['doctrine.proxy.directory'];
        if ( ! $directory) {
            $this->error('The proxy directory has not been set.');
            exit;
        }
        $this->info('Processing entities:');
        foreach ($metadata as $item)
            $this->line($item->name);
        $entityManager->getProxyFactory()->generateProxyClasses($metadata, $directory);
        $this->info('Proxies have been created.');
    }
} 
{'fraction_non_alphanumeric': 0.14361467079098542, 'fraction_numerical': 0.0, 'mean_word_length': 2.916955017301038, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '3817245', 'n_tokens_mistral': 583, 'n_tokens_neox': 580, 'n_words': 130}