Comments (8)
Hi @Boffice,
could you provide a code sample to reproduce the problem?
I was not able to replicate the issue.
Thanks.
from php-mattermost-driver.
private static function getDriver()
{
static $driverInstance = null;
if ($driverInstance !== null) {
return $driverInstance;
}
$container = new \Pimple\Container([
'driver' => [
'url' => '*',
'login_id' => '*',
'password' => '*',
]
]);
$driverInstance = new Driver($container);
$driverInstance->authenticate();
return $driverInstance;
}
public function add_user()
{
$driver = $this->getDriver();
//Add a new user
$result = $driver->getUserModel()->createUser([
'email' => '[email protected]',
'username' => 'test',
'password' => 'testpsw'
]);
echo $this->print($result);
}
from php-mattermost-driver.
Hi @Boffice,
I can not replicate your problem, it seems ok to me. Plus, I did not figure out how is possible to have that kind of error since this library do not use any Laravel package.
I may suggest you to verify where you are using the Illuminate\Container\Container
, and try to follow the error stack trace to get to the source of the problem. Let me know if you need any help with this.
If you are using this library whithin Laravel, maybe you can find more suitable the Laravel Mattermost Driver.
from php-mattermost-driver.
Looks like psr/container conflicts with Illuminate/container, and i am using Codeigniter. Illuminate/Container is needed for other modules and can't be removed.
from php-mattermost-driver.
That is ok, but how is this related to the php-mattermost-driver? The code you posted can not generate that kind of error.
from php-mattermost-driver.
Issue appears once i include require('modules/mattermost/vendor/autoload.php');
to the controller. driver loads psr/container which conflicts with illuminate/container.
even
public function index()
{
echo 'hello world';
}
Returns same error.
from php-mattermost-driver.
Hi @Boffice, sorry for the late response.
Any update on this?
from php-mattermost-driver.
Hello, was not able to get around this issue.
from php-mattermost-driver.
Related Issues (20)
- Join forces on MattermostAPI client? HOT 3
- Message with File Attached HOT 8
- " Class 'Pimple\Container' not found" HOT 1
- Can not upload file HOT 7
- Can't use search in channel ! HOT 6
- Methods to manage icons HOT 4
- Returns 500 HOT 4
- Laravel 7 support? HOT 2
- Preferences model are locked to single user because of model caching HOT 7
- Support limit_after and limit_before parameters in request to get posts around oldest unread HOT 3
- With https:// in the beginning 500 error and without nothing happens HOT 5
- Laravel 7 Support HOT 2
- guzzle 7.x support HOT 1
- Missing Endpoints in ReactionModel? HOT 2
- Endpoint for custom user status HOT 1
- Guzzle HOT 2
- Decouple from Pimple HOT 5
- Add optional permanent=true to user and channel delete HOT 1
- Api function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-mattermost-driver.