ZF2 - Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer - zend-framework

I'm developing a project on ZF2 + Doctrine2. Also I'm using ZfcUser. My composer.json looks like:
"php" : ">=5.5",
"zendframework/zendframework" : "~2.5",
"zendframework/zendservice-recaptcha" : "2.*",
"doctrine/doctrine-orm-module" : "0.*",
"zf-commons/zfc-base" : "0.*",
"zf-commons/zfc-user" : "1.*",
"zf-commons/zfc-user-doctrine-orm" : "^1.0",
"zf-commons/zfc-admin" : "0.1.0",
"bjyoungblood/bjy-authorize" : "1.*",
All works fine until I has updated project through composer...
Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer. Please update your class ZfcUser\Authentication\Storage\Db to remove the implementation, and start injecting your dependencies via factory instead. in /vagrant/personal/vendor/zendframework/zend-mvc/src/Service/ServiceManagerConfig.php on line 127
Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer. Please update your class ZfcUser\Authentication\Adapter\Db to remove the implementation, and start injecting your dependencies via factory instead. in /vagrant/personal/vendor/zendframework/zend-mvc/src/Service/ServiceManagerConfig.php on line 127
Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer. Please update your class ZfcUser\Service\User to remove the implementation, and start injecting your dependencies via factory instead. in /vagrant/personal/vendor/zendframework/zend-mvc/src/Service/ServiceManagerConfig.php on line 127
I don't understand how It can correctly fix. I have no time, so I will be very grateful if someone will show in detail how this to change.

This issue needs some refactoring to the ZfcUser library. A Github issue was already reported, also there is a possible, not yet merged, fix as pull request.
But you don't have to start crying, cause this is just an info. While you are using ZF2 ZfcUser will work as expected thanks to SemVer and not breaking backwards compatibility.

Related

How to Enable Private Method Syntax Proposal in React App?

I got "Class private methods are not enabled." error when running npm start on a project using leading # to indicate private methods.
I followed this answer: https://stackoverflow.com/a/55822103/4258041 to enable the decorator and it worked, but I cannot find corresponding customize-cra components to add private method syntax in a same way.
"#babel/plugin-proposal-private-methods": "^7.14.5" is already installed and saved in my packages.json.
You can use the #babel/plugin-proposal-class-properties.
Install with
npm install --save-dev #babel/plugin-proposal-class-properties
then add it to your .babelrc plugin section:
{
"plugins": ["#babel/plugin-proposal-class-properties"]
}
Please consider that while I'm writing this is already an outdated answer, since Class Fields are no longer a proposal since ES2022 and this plugin is included in #babel/preset-env.
See here for further information.

malformed record data: github.com/lib/pq#v1.1.0/go.mod

i'm trying to get the go package using command go get gorm.io/driver/postgres
but the result is always like this
go get: gorm.io/driver/postgres#none updating to
gorm.io/driver/postgres#v1.1.0 requires
github.com/jackc/pgx/v4#v4.11.0 requires
github.com/jackc/pgconn#v1.8.1 requires
github.com/jackc/pgmock#v0.0.0-20190831213851-13a1b77aafa2 requires
github.com/jackc/pgtype#v0.0.0-20190828014616-a8802b16cc59 requires
github.com/jackc/pgx/v4#v4.0.0-pre1.0.20190824185557-6972a5742186 requires
github.com/jackc/pgtype#v0.0.0-20190824184912-ab885b375b90 requires
github.com/lib/pq#v1.1.0: verifying go.mod: github.com/lib/pq#v1.1.0/go.mod: malformed record data
i have cleaned my cache and still getting the same error. what should i do? thanks
You have an indirect dependency to [https://github.com/lib/pq/tree/v1.0.0] which has a malformed go mod file. The go version is not mentioned in that. The latest release is v1.10.2. There is nothing to do in your code since its indirect, you can use a version of your direct dependecy gorm.io/driver/postgres which uses an updated version of this lib/pq/tree library or raise an issue in the git for lib/pq/tree.

Update Akka-version: ClusterClient is not a member of package akka.contrib.pattern

I used akka-2.3.9 and akka.contrib.pattern.ClusterClient.
Having updated the version akka-2.3.9 -> akka-2.4.9 I've got the following mistake:
ClusterClient is not a member of package akka.contrib.pattern
Should I use akka.cluster.client.ClusterClient instead of previous akka.contrib.pattern.ClusterClient ?
Yes. See 2.4.9 API vs 2.3.9 API.

Can't locate object method "ssl_opts" via package "LWP::UserAgent"

All related modules are installed and also checked dependencies ..already installed everything even though given below error :
Can't locate object method "ssl_opts" via package "LWP::UserAgent" on centos 6
Can anyone help me?
Looks like the ssl_opts method was added in libwww version 6.00. And the Centos 6 package is called perl-libwww-perl-5.833. So, the version of LWP::UserAgent that you have is too old to include that method.

Composer package by branch

I have a forked symfony repository in GitHub and I pushed some code to the 2.4 branch.
How can I make Composer use this specific branch?
composer.json:
"require" : {
...
"symfony/symfony" : "dev-2.4"
},
"repositories" : {
"type" : "vcs",
"url" : "https://github.com/tamirvs/symfony"
}
But I get The requested package symfony/symfony dev-2.4 could not be found.
I've also tried 2.4-dev and 2.4 but I get the same error..
All the info I found on the web got me to what I've already tried.. any ideas?
Please note, that when setting the version to 2.4.* the repository is pulled but without my commits..
I think you'll need to use 2.4.x-dev, as outlined in the documentation.
For example a branch 2.0 will get a version 2.0.x-dev (the .x is added for technical reasons, to make sure it is recognized as a branch, a 2.0.x branch would also be valid and be turned into 2.0.x-dev as well.
Try 2.5-dev.
I believe that the branch has got that version number.
EDIT:
Take a look at https://github.com/tamirvs/symfony/blob/master/composer.json
"extra": {
"branch-alias": {
"dev-master": "2.5-dev"
}
}