| 1 | <?php |
||
| 10 | class WriterFactory |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Create a new instance of a writer based on the post type |
||
| 14 | * |
||
| 15 | * @param string $postType Post type we are working against |
||
| 16 | * @param array $config Config to use to generate the writer |
||
| 17 | * @param bool $throwExceptionOnInvalidWriter Whether to throw an exception if an unknown writer is requested |
||
| 18 | * |
||
| 19 | * @return WriterInterface |
||
| 20 | * @throws \Exception |
||
| 21 | */ |
||
| 22 | public static function create($postType, $config, $throwExceptionOnInvalidWriter = false) |
||
| 35 | } |