Renamed Registry -> GenericRegistry to make it clear that this registry does
[core.git] / framework / main / classes / registration / class_BaseRegistration.php
index db2ec31..6dad6fd 100644 (file)
@@ -1,11 +1,12 @@
 <?php
 // Own namespace
-namespace CoreFramework\Registration;
+namespace Org\Mxchange\CoreFramework\Registration;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 
 /**
  * A general registration class.
@@ -29,7 +30,7 @@ use CoreFramework\Object\BaseFrameworkSystem;
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class BaseRegistration extends BaseFrameworkSystem {
+abstract class BaseRegistration extends BaseFrameworkSystem {
        /**
         * Pre-registration filter chain
         */
@@ -91,7 +92,7 @@ class BaseRegistration extends BaseFrameworkSystem {
         */
        protected function executePreFilters () {
                // Execute all pre filters
-               $this->preRegistrationFilter->processFilters($this->getRequestInstance(), $this->getResponseInstance());
+               $this->preRegistrationFilter->processFilters(FrameworkBootstrap::getRequestInstance(), FrameworkBootstrap::getResponseInstance());
        }
 
        /**
@@ -101,7 +102,7 @@ class BaseRegistration extends BaseFrameworkSystem {
         */
        protected function executePostFilters () {
                // Execute all post filters
-               $this->postRegistrationFilter->processFilters($this->getRequestInstance(), $this->getResponseInstance());
+               $this->postRegistrationFilter->processFilters(FrameworkBootstrap::getRequestInstance(), FrameworkBootstrap::getResponseInstance());
        }
 
 }