Giter Site home page Giter Site logo

yii2-rest-client's People

Contributors

chsergey avatar slavapcom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

yii2-rest-client's Issues

HI! I'm having a problem with Model Implementation

Declaration of chsergey\rest\Model::getAttributes() should be compatible with yii\base\Model::getAttributes($names = NULL, $except = Array)

1. in C:\xampp\htdocs\ventas_yii\vendor\chsergey\yii2-rest-client\src\Model.php at line 10
12345678910111213141516171819

<?php
 
namespace chsergey\rest;
 
/**
 * Class Model
 * 
 * @package chsergey\rest
 */
abstract class Model extends \yii\base\Model implements ModelInterface {
    /**
     * Url to REST API without resource name with trailing slash
     * Resource name will be added as postfix
     * @var string
     */
    public static $apiUrl;
    /**
     * REST resource name without trailing slash
     * @var string

2. in C:\xampp\htdocs\ventas_yii\vendor\chsergey\yii2-rest-client\src\Model.php at line 10 โ€“ yii\base\ErrorHandler::handleError(2048, 'Declaration of chsergey\rest\Mod...', 'C:\xampp\htdocs\ventas_yii\vendo...', 10, ...)

Please, share your methods

Hello! Could you change your private methods to protected in 'yii2-rest-client/src/Query' ?
At least, '_populate' and '_request'. Otherwise it is impossible to create my own methods for rest client, for example "delete()"

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.