for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Bldr.io
*
* (c) Aaron Scherer <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE
*/
namespace Bldr\Block\Miscellaneous;
use Bldr\DependencyInjection\AbstractBlock;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
* @author Aaron Scherer <[email protected]>
class MiscellaneousBlock extends AbstractBlock
{
* {@inheritDoc}
public function assemble(array $config, ContainerBuilder $container)
$this->addTask('bldr_miscellaneous.sleep', 'Bldr\Block\Miscellaneous\Task\SleepTask');
$this->addTask('bldr_miscellaneous.service', 'Bldr\Block\Miscellaneous\Task\ServiceTask');
$this->addService(
'bldr_miscellaneous.service.envvar_repository',
'Bldr\Block\Miscellaneous\Service\EnvironmentVariableRepository'
)
->setPublic(false)
;
$this->addTask(
'bldr_miscellaneous.export',
'Bldr\Block\Miscellaneous\Task\ExportTask',
[new Reference('bldr_miscellaneous.service.envvar_repository')]
);
'bldr_miscellaneous.service.envvar_subscriber',
'Bldr\Block\Miscellaneous\Service\EnvironmentVariableSubscriber',
->addTag('bldr_subscriber')
}