Code Monkey home page Code Monkey logo

Comments (5)

bseddon avatar bseddon commented on July 27, 2024 2

Wow, you're right. It seems I did not push the change to the autoloader. The change suggested in #1 has been pushed and a new new release is available for composer. Thanks for letting me know.

from xml-signer.

adriamt avatar adriamt commented on July 27, 2024

Same for example for the class AttributeNames

from xml-signer.

bseddon avatar bseddon commented on July 27, 2024

I've just downloaded the latest version and setup a test script which includes the example from the readme and it works OK for me. Because so many classes are failing maybe the issue is something else. For example, did you add 'use' statements for the classes referenced by the example? Without these PHP will not be able to locate the class. This is an omission by me so I have updated the example to show the necessary use statements which are:

use lyquidity\xmldsig\CertificateResourceInfo;
use lyquidity\xmldsig\InputResourceInfo;
use lyquidity\xmldsig\KeyResourceInfo;
use lyquidity\xmldsig\ResourceInfo;
use lyquidity\xmldsig\XAdES;
use lyquidity\xmldsig\xml\SignatureProductionPlaceV2;
use lyquidity\xmldsig\xml\SignerRoleV2;
use lyquidity\xmldsig\XMLSecurityDSig;

If you have downloaded the source from GitHub (rather than installing using composer) then you will also need to add a reference to the xml-signer autoloader.php or PHP will be unable to find the classes even if the 'use' statements exist. When xml-signer is installed using composer this step is not needed as its autoload.php is called when the composer autoload.php is referenced.

If you have downloaded the source from GitHub you will also need to separately download the dependent requester project. You will then need to reference the autoload.php from this project. Without these steps, PHP will be unable to find the certificate handling code.

download and the

from xml-signer.

sangar82 avatar sangar82 commented on July 27, 2024

thanks for your reply @bseddon !

and sorry for the omitted information:

  • I'm using composer with the main branch
  • I'm using ubuntu as SO (in a Virtual Machine launched with vagrant and virtualbox)
  • When I copied the code, I added the use statements correctly (PhpStorm links the classes properly by the namespaces)

I think is something about your autoload functions, something about differences Windows-linux system, as a route, a path, or something else. The file name and namespace seems to be correct for psr-4.

from xml-signer.

sangar82 avatar sangar82 commented on July 27, 2024

It works! Thank you!

from xml-signer.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.