Skip to content

Commit

Permalink
Renamed Newspaper class to better reflect the nature of the class.
Browse files Browse the repository at this point in the history
CdmNewspapers writer class now uses file getter class set in the configuration file.
  • Loading branch information
Marcus Emmanuel Barnes committed May 14, 2015
1 parent cf6fd95 commit e91d618
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
52 changes: 26 additions & 26 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/writers/Newspapers.php → src/writers/CdmNewspapers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace mik\writers;

class Newspapers extends Writer
class CdmNewspapers extends Writer
{
/**
* @var array $settings - configuration settings from confugration class.
Expand Down Expand Up @@ -45,8 +45,10 @@ public function __construct($settings)
parent::__construct($settings);
$this->fetcher = new \mik\fetchers\Cdm($settings);
$this->alias = $settings['WRITER']['alias'];
// @Todo load manipulators someway based on those to be listed in config.
$this->thumbnail = new \mik\filemanipulators\ThumbnailFromCdm($settings);
$this->cdmNewspapersFileGetter = new \mik\filegetters\CdmNewspapers($settings);
$fileGetterClass = 'mik\\filegetters\\' . $settings['FILE_GETTER']['class'];
$this->cdmNewspapersFileGetter = new $fileGetterClass($settings);
}

/**
Expand Down

0 comments on commit e91d618

Please sign in to comment.