Skip to content

Remove duplicated new #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LightSAML-Core/Cookbook/How-to-build-own-container/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You need to construct your own credentials and entity descriptor, pass it to an
<?php
$container = new \LightSaml\Bridge\Pimple\Container\BuildContainer(new \Pimple\Container());

$ownCredential = new new \LightSaml\Credential\X509Credential(
$ownCredential = new \LightSaml\Credential\X509Credential(
\LightSaml\Credential\X509Certificate::fromFile('/path/to/your/saml.crt'),
\LightSaml\Credential\KeyHelper::createPrivateKey('path/to/your/saml.key', null, true)
);
Expand All @@ -30,7 +30,7 @@ $ownEntityDescriptorProvider = new \LightSaml\Builder\EntityDescriptor\SimpleEnt
);

// or somehow build it yourself
$ownEntityDescriptor = new new \LightSaml\Model\Metadata\EntityDescriptor();
$ownEntityDescriptor = new \LightSaml\Model\Metadata\EntityDescriptor();
// put stuff to it...
$ownEntityDescriptorProvider = new \LightSaml\Provider\EntityDescriptor\FixedEntityDescriptorProvider(
$ownEntityDescriptor
Expand Down