Skip to content

web - Klage von abgeordnetenwatch.de gegen den Deutschen Bundestag auf Offenlegung von Lobbykontakten

Am Donnerstag verhandelt das Berliner Verwaltungsgericht über eine Klage von abgeordnetenwatch.de gegen den Deutschen Bundestag auf Offenlegung von Lobbykontakten. Die wichtigsten Fragen und Antworten im Zusammenhang mit unserer Klage:
[...]

Quelle.

Sehr gute Angelegenheit. Natürlich werden die Abgeordneten die geforderte Offenlegung soweit wie möglich verzögern ... kostet ja nur Steuergeld, aber ich hoffe, dass diese Offenlegung dennoch unvermeidbar ist. Danke abgeordnetenwatch für die Arbeit.

zend framework 2.4 "Zend\ServiceManager\Exception\ServiceNotFoundException: Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for ApplicationConfig"

We had some controller tests in our test cases and the following error was thrown, after we updated to zend framework 2.4.


Zend\ServiceManager\Exception\ServiceNotFoundException: Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for ApplicationConfig

/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:555
/vendor/zendframework/zendframework/library/Zend/Mvc/Service/ModuleManagerFactory.php:41
/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:939
/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:1097
/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:638
/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:598
/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:530
/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php:253
/vendor/zendframework/zendframework/library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:164
/vendor/zendframework/zendframework/library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:73
//MyControllerTest.php:124
"MyControllerTest" extends "Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase". What we did to solve the problem was adding the following lines of code in our "setUp" method.

$applicationConfigurationPath = __DIR__ . str_repeat('/..', ) . '/config/application.config.php';
if (!is_file($applicationConfigurationPath)) {
    $message = 'application configuration needed and not found in path "' . $applicationConfigurationPath . '"';

    $this->fail($message);
}
$applicationConfiguration = require $applicationConfigurationPath;
unset($applicationConfiguration['module_listener_options']['config_glob_paths']);
$applicationConfiguration['modules'] = array();

$this->setApplicationConfig($applicationConfiguration);

Thats it, hope it helps.

version 1.0.0. php component csv released

I am happy to announce the release of 1.0.0 of bazzlines csv component for php.
Benefits

  • works with PHP 5.3 and above
  • __invoke() implemented to use it as function
  • unified reader and writer
  • adapter to easy up migration from EasyCsv - 0.0.1 to this component
  • reader
    • implemented iterator
    • readOne();
    • readMany();
    • readAll();
  • writer
    • truncate();
    • delete();
    • copy();
    • writeOne();
    • writeMany();
    • writeAll(); //truncates file and writes content