protected function route($config)
    {
        if (in_array($config['type'], ['post-type', 'cpt', 'posttype', 'post_type'])) {
            (new PostType($config))->run();
        }
        if (in_array($config['type'], ['taxonomy', 'tax', 'category', 'cat', 'tag'])) {
            (new Taxonomy($config))->run();
        }
    }
protected function route($config)
    {
        if (in_array($config['type'], ['post-type', 'cpt', 'posttype', 'post_type'])) {
            (new PostType($config))->run();
        }
        if (in_array($config['type'], ['taxonomy', 'tax', 'category', 'cat', 'tag'])) {
            (new Taxonomy($config))->run();
        }
    }
protected function route ( $ config ) { if ( in_array ( $ config [ 'type' ] , [ 'post-type' , 'cpt' , 'posttype' , 'post_type' ] ) ) { ( new PostType ( $ config ) ) -> run ( ) ; } if ( in_array ( $ config [ 'type' ] , [ 'taxonomy' , 'tax' , 'category' , 'cat' , 'tag' ] ) ) { ( new Taxonomy ( $ config ) ) -> run ( ) ; } }
Route to class
Route to class