Manager/ModuleManager.php
public function changelogFor(Module $module)
    {
        $path = $module->getPath().'/CHANGELOG.md';
        if (! $this->finder->isFile($path)) {
            return [];
        }

        $parser = new \Changelog\Parser(file_get_contents($path));

        return $parser->getReleases();
    }
public function changelogFor(Module $module)
    {
        $path = $module->getPath().'/CHANGELOG.md';
        if (! $this->finder->isFile($path)) {
            return [];
        }

        $parser = new \Changelog\Parser(file_get_contents($path));

        return $parser->getReleases();
    }
public function changelogFor ( Module $ module ) { $ path = $ module -> getPath ( ) . '/CHANGELOG.md' ; if ( ! $ this -> finder -> isFile ( $ path ) ) { return [ ] ; } $ parser = new \ Changelog \ Parser ( file_get_contents ( $ path ) ) ; return $ parser -> getReleases ( ) ; }
Get the changelog for the given module.

@param Module $module

@return array
Get the changelog for the given module .