for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class for apps that are also class registries.
*
* @package wordpoints-hooks-api
* @since 1.0.0
*/
* An app that is also a class registry.
class WordPoints_App_Registry
extends WordPoints_App
implements WordPoints_Class_RegistryI {
* The class registry object.
* @var WordPoints_Class_Registry
protected $registry;
public function __construct( $slug ) {
$this->registry = new WordPoints_Class_Registry();
parent::__construct( $slug );
}
public function get_all( array $args = array() ) {
return $this->registry->get_all( $args );
public function get_all_slugs() {
return $this->registry->get_all_slugs();
public function get( $slug, array $args = array() ) {
return $this->registry->get( $slug, $args );
public function register( $slug, $class, array $args = array() ) {
return $this->registry->register( $slug, $class, $args );
public function deregister( $slug ) {
$this->registry->deregister( $slug );
public function is_registered( $slug ) {
return $this->registry->is_registered( $slug );
// EOF