php - How to override a vendor class in Laravel 5? -


i can't seem specific class overridden.

in routeserviceproviders boot() function have line:

$this->app->bind('dingo\api\routing\route', 'app\extensions\vendor\dingo\api\routing\route'); 

i'm trying override dingo route class can see, own custom class located @ app\extensions\vendor\dingo\api\routing

my custom route class looks this:

<?php namespace app\extensions\vendor\dingo\api\routing;  use dingo\api\routing\route routebase;  class route extends routebase {     /**      * merge controller properties onto route properties.      *      * @return void      */     protected function mergecontrollerproperties()     {         echo 'huge success';         exit;     } } 

what doing wrong? calls mergecontrollerproperties() on dingo route class instead of custom class??

i can mention worked fine until ran composer update while ago.


Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -