private function setup()
    {
        $this['licenser'] = function () {
            return new Licenser(new Finder());
        };

        $this['command.licenser'] = function ($c) {
            return new LicenserCommand($c['licenser'], $c['license_header_factory']);
        };

        $this['command.check'] = function ($c) {
            return new CheckCommand($c['licenser'], $c['license_header_factory']);
        };

        $this['twig.templating'] = function () {
            $loader = new \Twig_Loader_Filesystem(__DIR__ . '/../../licenses');
            return new \Twig_Environment($loader);
        };

        $this['license_header_factory'] = function ($c) {
            return new LicenseHeaderFactory($c['twig.templating']);
        };
    }