question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] PHP Client Runtime?

See original GitHub issue

Sample code generated by AutoRest:

/**
 * @param \Microsoft\Rest\RunTimeInterface $_runTime
 * @param string $subscriptionId
 */
public function __construct(
    \Microsoft\Rest\RunTimeInterface $_runTime,
    $subscriptionId
)
{
    $_client = $_runTime->createClientFromData(
        self::_SWAGGER_OBJECT_DATA,
        ['subscriptionId' => $subscriptionId]
    );
    $this->_ListPets_operation = $_client->createOperation('listPets');
    $this->_CreatePets_operation = $_client->createOperation('createPets');
    $this->_ShowPetById_operation = $_client->createOperation('showPetById');
}

I didn’t find \Microsoft\Rest\RunTimeInterface implementation on Azure/autorest.php or Azure/azure-sdk-for-php. So where can I find PHP Client Runtime required for the generated code?

Can someone help? 🙂

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rolfeccommented, Nov 28, 2019

FYI. My company switched to the following open-source alternatives as the support for PHP and other languages seem to be a dead end in autorest.

0reactions
kant2002commented, Nov 27, 2019

@fearthecowboy Subsequent question. Is there any chance that some parts for PHP can be dropped as open source code by MS? It maybe practical to resurrect that using community only.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get the run time for a PHP script - Stack Overflow
<?php $start = microtime(true); echo "This is some text that I want to know how long it took to display it.
Read more >
Uncaught Error: Class 'AuthenticationContext' · Issue #76 ...
When I include require_once 'vendor/autoload.php' i found below error : Fatal error: Uncaught Error: Class 'AuthenticationContext' How can i ...
Read more >
Top 64 PHP Interview Questions & Answers 2022 - Intellipaat
This blog contains the Top 64 frequently asked PHP Interview Questions and answers in ... The content can be changed even at the...
Read more >
Top 50 PHP Interview Questions and Answers in 2023 | Edureka
This blog provides you with a compilation of the top PHP interview questions you might face during your job interview in 2023.
Read more >
Top PHP Interview Questions (2023) - InterviewBit
Today, this article will walk you through the most commonly asked PHP interview questions for freshers and experienced in the industry.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found