blob: 7a7c7eef8bf5bcb171bc2cc69451c34d3ce30da6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
// The Capable flavour of RustPluginStub: `$plugin instanceof Capable` decides whether Composer
// asks a plugin for capabilities, so the stub class is picked to match what the Rust-side
// plugin implements.
namespace Shirabe;
use Composer\Plugin\Capable;
class RustCapablePluginStub extends RustPluginStub implements Capable
{
public function getCapabilities()
{
return \ShirabeRpcRuntime::callRust($this->__rhandle, 'getCapabilities', []);
}
}
|