Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/PostType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use PostTypes\Columns;
use PostTypes\Contracts\PostTypeContract;
use PostTypes\Registrars\PostTypeRegistrar;
use PostTypes\Registration\Service;

abstract class PostType implements PostTypeContract
{
Expand Down Expand Up @@ -110,12 +110,12 @@ public function hooks(): void
}

/**
* Register the post type.
* Register the PostType.
*
* @return void
*/
public function register(): void
{
(new PostTypeRegistrar($this))->register();
Service::forPostType()->register($this);
}
}
261 changes: 0 additions & 261 deletions src/Registrars/PostTypeRegistrar.php

This file was deleted.

Loading