forked from adphi/occweb
fix #11
This commit is contained in:
parent
e5d211826f
commit
aa2848cfee
4
Makefile
4
Makefile
@ -157,3 +157,7 @@ appstore:
|
|||||||
test: composer
|
test: composer
|
||||||
$(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.xml
|
$(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.xml
|
||||||
$(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
|
$(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
|
||||||
|
|
||||||
|
.PHONY: sign
|
||||||
|
sign:
|
||||||
|
@openssl dgst -sha512 -sign ~/.nextcloud/certificates/occweb.key build/artifacts/appstore/occweb.tar.gz |openssl base64
|
||||||
|
@ -8,12 +8,12 @@ use Symfony\Component\Console\Output\ConsoleOutputInterface;
|
|||||||
use Symfony\Component\Console\Output\ConsoleSectionOutput;
|
use Symfony\Component\Console\Output\ConsoleSectionOutput;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method ConsoleSectionOutput section()
|
|
||||||
*/
|
|
||||||
class OccOutput extends BufferedOutput implements ConsoleOutputInterface
|
class OccOutput extends BufferedOutput implements ConsoleOutputInterface
|
||||||
{
|
{
|
||||||
|
private $consoleSectionOutputs = [];
|
||||||
|
|
||||||
|
private $stream;
|
||||||
/**
|
/**
|
||||||
* Gets the OutputInterface for errors.
|
* Gets the OutputInterface for errors.
|
||||||
*
|
*
|
||||||
@ -30,7 +30,14 @@ class OccOutput extends BufferedOutput implements ConsoleOutputInterface
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// public function __call($name, $arguments) {
|
/**
|
||||||
// // TODO: Implement @method ConsoleSectionOutput section()
|
* Creates a new output section.
|
||||||
// }
|
*/
|
||||||
|
public function section(): ConsoleSectionOutput {
|
||||||
|
if ($this->stream === null) {
|
||||||
|
$this->stream = fopen('php://temp','w');
|
||||||
|
}
|
||||||
|
return new ConsoleSectionOutput($this->stream, $this->consoleSectionOutputs, $this->getVerbosity(), $this->isDecorated(), $this->getFormatter());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user