@gaurav_harsh1 yes, Working good, if i use module then only the error even backend also collapsed now everything working. Is my module right?
Create a new module and try in that.
Good luck !!!
@gaurav_harsh1 FYI i just paste the entire code https://github.com/magento/magento2/blob/db69693bd929bd8665015ff6d9b6a3845584aa0b/lib/internal/Magen...
@gaurav_harsh1 What is the drawback if i paste code into vendor/magento/framework/Search/Dynamic/Algorithm.php instead o create a module?
It took me so much time to understand this while I was learning
even we if you install a third party module and it needs some customisation, don't work on same module, extend it so you will always have a back of "How the actual functionality works".
@gaurav_harsh1 Okay, but my module not working, i can't understand what is the error?
namespace Gta\Solver\Search\Dynamic; use Magento\Framework\Search\Dynamic\IntervalInterface; /** * Algorithm for layer value filter * * @author Magento Core Team <email@example.com> * @api */ class Algorithm extends \Magento\Framework\Search\Dynamic\Algorithm
That's good if issue resolved but not a valid approach, because what you are doing by extending core class is, you're linking the core as parent, but we had to replace that class.
well that's good if issue resolved and also check other changes as well in that commit that they are not linked with this class.
@gaurav_harsh1 I have maintained two websites, for another website Algorithm.php not available in vendor path instead of available in lib/internal/Magento/Framework/Search/Dynamic/Algorithm.php, here how to can i assign my namespace?