diff --git a/TaskSchedulerBundle.php b/TaskSchedulerBundle.php index 250b350..e518752 100644 --- a/TaskSchedulerBundle.php +++ b/TaskSchedulerBundle.php @@ -4,6 +4,7 @@ use Prokl\TaskSchedulerBundle\DependencyInjection\Compiler\EventDispatcherPass; use Prokl\TaskSchedulerBundle\DependencyInjection\Compiler\TaskPass; +use Prokl\TaskSchedulerBundle\DependencyInjection\TaskSchedulerExtension; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -13,6 +14,18 @@ */ final class TaskSchedulerBundle extends Bundle { + /** + * @inheritDoc + */ + public function getContainerExtension() + { + if ($this->extension === null) { + $this->extension = new TaskSchedulerExtension(); + } + + return $this->extension; + } + /** * @inheritDoc */