Giter Site home page Giter Site logo

Comments (5)

jeffreyroberts avatar jeffreyroberts commented on August 22, 2024

I tried to put a die in the ExtensionRegistry in _resolveClassName, but it doesnt die, so im a bit at a loss right now

from cakephp-api.

jeffreyroberts avatar jeffreyroberts commented on August 22, 2024

CakeDC API Issue #27

Steps to reproduce locally....

#!/bin/bash
git clone https://github.com/CakePHPKitchen/CakeDC-API-Issue-27.git
cd CakeDC-API-Issue-27
composer install
bin/cake server -p 9001

Then navigate to

http://localhost:9001/api/foo/stats

from cakephp-api.

jeffreyroberts avatar jeffreyroberts commented on August 22, 2024

Figured out why my die wasn't working, looks like there is 2 ExtensionRegistry.php files, almost identical...

I see there are two Extension folders as well, what I don't see is why one extension registry would be picked over another, and its picking the wrong one...

from cakephp-api.

jeffreyroberts avatar jeffreyroberts commented on August 22, 2024

ok so I found the offending method, its in this method where we will decide to run

CakeDC\Api\Service\ExtensionRegistry

or

CakeDC\Api\Service\Action\ExtensionRegistry

Here is the method

public function extensions($extensions = null)
{
    if ($extensions === null && $this->_extensions === null) {
        $this->_extensions = new ExtensionRegistry($this);
    }
    if ($extensions !== null) {
        $this->_extensions = $extensions;
    }

    return $this->_extensions;
}

from cakephp-api.

rogerpro avatar rogerpro commented on August 22, 2024

Closed per #28

from cakephp-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.