protected function storeConfig(array $blocksByPackage)
    {
        $content = "# This file is auto-generated by c33s/composer-construction-kit-installer\n# upon each composer dump-autoload event\n";
        $content .= Yaml::dump(array(
            'c33s_construction_kit' => array(
                'composer_building_blocks' => $blocksByPackage,
            ),
        ), 4);

        $fs = new Filesystem();
        $fs->dumpFile($this->getFilename(), $content);
    }