src/Recorder.php
private function processConfig()
    {
        $processor = new Processor();
        $coreConfig = Yaml::parse(file_get_contents(__DIR__.'/Resources/core_filters.yml'));
        $configs = array($this->config, $coreConfig);
        $configuration = new StereoConfiguration();
        $processedConfiguration = $processor->processConfiguration(
          $configuration,
          $configs
        );

        foreach ($processedConfiguration['core_filters'] as $filterClass) {
            $this->mixer->addFilter($filterClass);
        }

        foreach ($processedConfiguration['custom_filters'] as $customFilterClass) {
            $this->mixer->addFilter($customFilterClass);
        }

        foreach ($processedConfiguration['tapes'] as $name => $settings) {
            $tape = new Tape($name);
            foreach ($settings['filters'] as $k => $args) {
                $filter = $this->mixer->createFilter($k, $args);
                $tape->addFilter($filter);
            }
            $this->addTape($tape);
        }
    }
private function processConfig()
    {
        $processor = new Processor();
        $coreConfig = Yaml::parse(file_get_contents(__DIR__.'/Resources/core_filters.yml'));
        $configs = array($this->config, $coreConfig);
        $configuration = new StereoConfiguration();
        $processedConfiguration = $processor->processConfiguration(
          $configuration,
          $configs
        );

        foreach ($processedConfiguration['core_filters'] as $filterClass) {
            $this->mixer->addFilter($filterClass);
        }

        foreach ($processedConfiguration['custom_filters'] as $customFilterClass) {
            $this->mixer->addFilter($customFilterClass);
        }

        foreach ($processedConfiguration['tapes'] as $name => $settings) {
            $tape = new Tape($name);
            foreach ($settings['filters'] as $k => $args) {
                $filter = $this->mixer->createFilter($k, $args);
                $tape->addFilter($filter);
            }
            $this->addTape($tape);
        }
    }
private function processConfig ( ) { $ processor = new Processor ( ) ; $ coreConfig = Yaml :: parse ( file_get_contents ( __DIR__ . '/Resources/core_filters.yml' ) ) ; $ configs = array ( $ this -> config , $ coreConfig ) ; $ configuration = new StereoConfiguration ( ) ; $ processedConfiguration = $ processor -> processConfiguration ( $ configuration , $ configs ) ; foreach ( $ processedConfiguration [ 'core_filters' ] as $ filterClass ) { $ this -> mixer -> addFilter ( $ filterClass ) ; } foreach ( $ processedConfiguration [ 'custom_filters' ] as $ customFilterClass ) { $ this -> mixer -> addFilter ( $ customFilterClass ) ; } foreach ( $ processedConfiguration [ 'tapes' ] as $ name => $ settings ) { $ tape = new Tape ( $ name ) ; foreach ( $ settings [ 'filters' ] as $ k => $ args ) { $ filter = $ this -> mixer -> createFilter ( $ k , $ args ) ; $ tape -> addFilter ( $ filter ) ; } $ this -> addTape ( $ tape ) ; } }
Process configuration for registering tapes and filters.
Process configuration for registering tapes and filters .