SecurityBundle
SecurityBundle
....



CrocosSecurityBundle
https://github.com/crocos/
CrocosSecurityBundle
CrocosSecurityBundle
class MyController
{
    /**
      * @Secure
      */
    public function doAction()
    {
    }
}
/**
  * @Secure
  */
class MyController
{
     public function doAction()
     {
     }
}
Secure




(*)
/**
  * @Secure
  */
class MyController
{
     /**
       * @Secure(disabled=true)
       */
     public function doAction()
     {
     }
}
Secure   disabled
/**
 * @Secure
 */
class AppController {}

class FooController
    extends AppController {}

class BarController
   extends AppController {}
Secure
/**
  * @Secure
  * @SecureConfig(
     forward=“Acme:My:login”)
  */
class MyController
{
     public function loginAction()
     {
     }
}
SecureConfig
  forward



forward
/**
 * @Secure
 * @SecureConfig(domain=“default”)
 */
class UserController {}

/**
 * @Secure
 * @SecureConfig(domain=“admin”)
 */
class AdminController {}
SecureConfig   domain



default
admin
/**
 * @Secure
 * @SecureConfig(auth=“facebook”)
 */
class FacebookController {}
SecureConfig             auth




           session

facebook       Facebook PHP SDK
SecurityContext


               SecurityContext


crocos_security.context(DI       )
$context = $this->get(
  ‘crocos_security.context’);

$user = $userRepo->find(1);

$context->login($user);

$context->logout();
login()



           ID

logout()
if ($context->isAuthenticated()) {
    $user = $context->getUser();
}
isAuthenticated()

getUser()
オレオレSecurityバンドル作っちゃいました
GitHub


https://github.com/crocos/
CrocosSecurityBundle
README

More Related Content

PDF
Twigエクステンションの作り方
PDF
Fat Arrow (ES6)
PPTX
C Programming Language Part 7
PPT
Cpp tutorial
PDF
Clang2018 class3
PPTX
C Programming Language Part 8
DOCX
Pratik Bakane C++
PPTX
C Programming Language Part 4
Twigエクステンションの作り方
Fat Arrow (ES6)
C Programming Language Part 7
Cpp tutorial
Clang2018 class3
C Programming Language Part 8
Pratik Bakane C++
C Programming Language Part 4

What's hot (19)

DOCX
basic programs in C++
PPTX
Single linked list
PPTX
Circular linked list
PDF
ScalaFlavor4J
PPTX
C Programming Language Step by Step Part 5
PDF
Estendere applicazioni extbase
DOCX
Mouse programming in c
DOCX
Pratik Bakane C++
DOCX
Pratik Bakane C++
DOC
5 Rmi Print
DOCX
Pratik Bakane C++
PDF
Twig, the flexible, fast, and secure template language for PHP
PDF
array, function, pointer, pattern matching
DOCX
Programa en C++ ( escriba 3 números y diga cual es el mayor))
DOCX
Pratik Bakane C++
PPTX
Compiler design lab
PDF
tp_bison.pdf
basic programs in C++
Single linked list
Circular linked list
ScalaFlavor4J
C Programming Language Step by Step Part 5
Estendere applicazioni extbase
Mouse programming in c
Pratik Bakane C++
Pratik Bakane C++
5 Rmi Print
Pratik Bakane C++
Twig, the flexible, fast, and secure template language for PHP
array, function, pointer, pattern matching
Programa en C++ ( escriba 3 números y diga cual es el mayor))
Pratik Bakane C++
Compiler design lab
tp_bison.pdf
Ad

More from Katsuhiro Ogawa (10)

PDF
20120327 phpstudy58-phake
KEY
Symfony Update 2011
KEY
Symfony2のフォームフレームワーク
PDF
Contribute to Symfony
PPTX
究極のPHP本完成
PPTX
Symfony updates
PPTX
日本電子卒業生とPHPとsymfony
PPTX
sfWebDebugToolbarを 拡張してみる
PPT
symfony 1.2を支えるサブフレームワーク
ODP
Doctrineではじめるsymfony1.2開発
20120327 phpstudy58-phake
Symfony Update 2011
Symfony2のフォームフレームワーク
Contribute to Symfony
究極のPHP本完成
Symfony updates
日本電子卒業生とPHPとsymfony
sfWebDebugToolbarを 拡張してみる
symfony 1.2を支えるサブフレームワーク
Doctrineではじめるsymfony1.2開発
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PPTX
future_of_ai_comprehensive_20250822032121.pptx
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PPTX
Microsoft User Copilot Training Slide Deck
DOCX
search engine optimization ppt fir known well about this
PPTX
Configure Apache Mutual Authentication
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Advancing precision in air quality forecasting through machine learning integ...
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
NewMind AI Weekly Chronicles – August ’25 Week IV
future_of_ai_comprehensive_20250822032121.pptx
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
Lung cancer patients survival prediction using outlier detection and optimize...
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Co-training pseudo-labeling for text classification with support vector machi...
Rapid Prototyping: A lecture on prototyping techniques for interface design
Microsoft User Copilot Training Slide Deck
search engine optimization ppt fir known well about this
Configure Apache Mutual Authentication
sbt 2.0: go big (Scala Days 2025 edition)
Custom Battery Pack Design Considerations for Performance and Safety
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Advancing precision in air quality forecasting through machine learning integ...
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
giants, standing on the shoulders of - by Daniel Stenberg
Flame analysis and combustion estimation using large language and vision assi...
Data Virtualization in Action: Scaling APIs and Apps with FME

オレオレSecurityバンドル作っちゃいました