@@ -56,11 +56,11 @@ class Dispatcher
5656 protected $ auth ;
5757
5858 /**
59- * API config instance.
59+ * API properties instance.
6060 *
61- * @var \Dingo\Api\Config
61+ * @var \Dingo\Api\Properties
6262 */
63- protected $ config ;
63+ protected $ properties ;
6464
6565 /**
6666 * Internal request stack.
@@ -147,18 +147,18 @@ class Dispatcher
147147 * @param \Illuminate\Routing\UrlGenerator $url
148148 * @param \Dingo\Api\Routing\Router $router
149149 * @param \Dingo\Api\Auth\Authenticator $auth
150- * @param \Dingo\Api\Config $config
150+ * @param \Dingo\Api\Properties $properties
151151 *
152152 * @return void
153153 */
154- public function __construct (Container $ container , Filesystem $ files , UrlGenerator $ url , Router $ router , Authenticator $ auth , Config $ config )
154+ public function __construct (Container $ container , Filesystem $ files , UrlGenerator $ url , Router $ router , Authenticator $ auth , Properties $ properties )
155155 {
156156 $ this ->container = $ container ;
157157 $ this ->files = $ files ;
158158 $ this ->url = $ url ;
159159 $ this ->router = $ router ;
160160 $ this ->auth = $ auth ;
161- $ this ->config = $ config ;
161+ $ this ->properties = $ properties ;
162162
163163 $ this ->setupRequestStack ();
164164 }
@@ -343,7 +343,7 @@ public function cookie(Cookie $cookie)
343343 */
344344 public function route ($ name , $ parameters = [], $ requestParameters = [])
345345 {
346- $ version = $ this ->version ?: $ this ->config ->getVersion ();
346+ $ version = $ this ->version ?: $ this ->properties ->getVersion ();
347347
348348 $ route = $ this ->router ->getApiGroups ()->getByDomainOrVersion ($ this ->domain , $ version )->getByName ($ name );
349349
@@ -361,7 +361,7 @@ public function route($name, $parameters = [], $requestParameters = [])
361361 */
362362 public function action ($ action , $ parameters = [], $ requestParameters = [])
363363 {
364- $ version = $ this ->version ?: $ this ->config ->getVersion ();
364+ $ version = $ this ->version ?: $ this ->properties ->getVersion ();
365365
366366 $ route = $ this ->router ->getApiGroups ()->getByDomainOrVersion ($ this ->domain , $ version )->getByAction ($ action );
367367
@@ -487,7 +487,7 @@ protected function queueRequest($verb, $uri, $parameters, $content = '')
487487 protected function createRequest ($ verb , $ uri , $ parameters )
488488 {
489489 if (! isset ($ this ->version )) {
490- $ this ->version = $ this ->config ->getVersion ();
490+ $ this ->version = $ this ->properties ->getVersion ();
491491 }
492492
493493 $ api = $ this ->router ->getApiGroups ()->getByDomainOrVersion ($ this ->domain , $ this ->version );
@@ -520,7 +520,7 @@ protected function createRequest($verb, $uri, $parameters)
520520 */
521521 protected function buildAcceptHeader ()
522522 {
523- return sprintf ('application/vnd.%s.%s+%s ' , $ this ->config ->getVendor (), $ this ->version , $ this ->config ->getFormat ());
523+ return sprintf ('application/vnd.%s.%s+%s ' , $ this ->properties ->getVendor (), $ this ->version , $ this ->properties ->getFormat ());
524524 }
525525
526526 /**
0 commit comments