Factory.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\Compatibility\Sensei; |
| 4 | |
| 5 | use WCML\Compatibility\ComponentFactory; |
| 6 | use WCML_Sensei; |
| 7 | use WPML_Custom_Columns; |
| 8 | use function WCML\functions\getSitePress; |
| 9 | |
| 10 | class Factory extends ComponentFactory { |
| 11 | |
| 12 | public function create() { |
| 13 | $sitepress = getSitePress(); |
| 14 | |
| 15 | return new WCML_Sensei( $sitepress, new WPML_Custom_Columns( $sitepress ) ); |
| 16 | } |
| 17 | } |
| 18 |